summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/ini
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-11-22 16:56:59 -0800
committerisaacs <i@izs.me>2011-11-22 17:03:58 -0800
commit3ab15cde2516564a2bc4fe6246fe447f07752ed4 (patch)
treee858b4c4617fe2f9d1b69e7b2186f6b0674ec93b /deps/npm/node_modules/ini
parent0ba78d5f36256dacf625e96dc40e4e34bacfdd35 (diff)
downloadandroid-node-v8-3ab15cde2516564a2bc4fe6246fe447f07752ed4.tar.gz
android-node-v8-3ab15cde2516564a2bc4fe6246fe447f07752ed4.tar.bz2
android-node-v8-3ab15cde2516564a2bc4fe6246fe447f07752ed4.zip
Update npm to 1.1.0-alpha-2
Diffstat (limited to 'deps/npm/node_modules/ini')
-rw-r--r--deps/npm/node_modules/ini/test/fixtures/foo.ini18
-rw-r--r--deps/npm/node_modules/ini/test/foo.js40
2 files changed, 0 insertions, 58 deletions
diff --git a/deps/npm/node_modules/ini/test/fixtures/foo.ini b/deps/npm/node_modules/ini/test/fixtures/foo.ini
deleted file mode 100644
index aa4b177a01..0000000000
--- a/deps/npm/node_modules/ini/test/fixtures/foo.ini
+++ /dev/null
@@ -1,18 +0,0 @@
-o = p
-
- a with spaces = b c
-
-; wrap in quotes to JSON-decode and preserve spaces
-" xa n p " = "\"\r\nyoyoyo\r\r\n"
-
-; a section
-[a]
-av = a val
-e = { o: p, a: { av: a val, b: { c: { e: "this value" } } } }
-j = "{ o: "p", a: { av: "a val", b: { c: { e: "this value" } } } }"
-
-; nested child without middle parent
-; should create otherwise-empty a.b
-[a.b.c]
-e = 1
-j = 2
diff --git a/deps/npm/node_modules/ini/test/foo.js b/deps/npm/node_modules/ini/test/foo.js
deleted file mode 100644
index 31af10320f..0000000000
--- a/deps/npm/node_modules/ini/test/foo.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var i = require("../")
- , tap = require("tap")
- , test = tap.test
- , fs = require("fs")
- , path = require("path")
- , fixture = path.resolve(__dirname, "./fixtures/foo.ini")
- , data = fs.readFileSync(fixture, "utf8")
- , d
- , expectE = 'o = p\n'
- + 'a with spaces = b c\n'
- + '" xa n p " = "\\"\\r\\nyoyoyo\\r\\r\\n"\n'
- + '[a]\n'
- + 'av = a val\n'
- + 'e = { o: p, a: '
- + '{ av: a val, b: { c: { e: "this value" '
- + '} } } }\nj = "\\"{ o: \\"p\\", a: { av:'
- + ' \\"a val\\", b: { c: { e: \\"this value'
- + '\\" } } } }\\""\n[a.b.c]\ne = 1\nj = 2\n'
- , expectD =
- { o: 'p',
- 'a with spaces': 'b c',
- " xa n p ":'"\r\nyoyoyo\r\r\n',
- a:
- { av: 'a val',
- e: '{ o: p, a: { av: a val, b: { c: { e: "this value" } } } }',
- j: '"{ o: "p", a: { av: "a val", b: { c: { e: "this value" } } } }"',
- b: { c: { e: '1', j: '2' } } }
- }
-
-test("decode from file", function (t) {
- d = i.decode(data)
- t.deepEqual(d, expectD)
- t.end()
-})
-
-test("encode from data", function (t) {
- e = i.encode(expectD)
- t.deepEqual(e, expectE)
- t.end()
-})