Skip to content

Commit 838c5ef

Browse files
committed
Improve test coverage.
1 parent 799a729 commit 838c5ef

File tree

5 files changed

+53
-5
lines changed

5 files changed

+53
-5
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 0.6
4+
- 0.8

package.json

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,52 @@
1414
"url": "http://github.com/Gozala/querystring/issues/"
1515
},
1616
"devDependencies": {
17-
"test": ">=0.4.3"
17+
"test": "~0.x.0",
18+
"phantomify": "~0.x.0",
19+
"retape": "~0.x.0",
20+
"tape": "~0.1.5"
1821
},
1922
"engines": {
2023
"node": ">=0.4.x"
2124
},
2225
"scripts": {
23-
"test": "node tests/test-querystring.js"
24-
}
26+
"test": "npm run test-node && npm run test-browser && npm run test-tap",
27+
"test-browser": "node ./node_modules/phantomify/bin/cmd.js ./test/common-index.js",
28+
"test-node": "node ./test/common-index.js",
29+
"test-tap": "node ./test/tap-index.js"
30+
},
31+
"testling": {
32+
"files": "test/tap-index.js",
33+
"browsers": {
34+
"iexplore": [
35+
9,
36+
10
37+
],
38+
"chrome": [
39+
16,
40+
20,
41+
25,
42+
"canary"
43+
],
44+
"firefox": [
45+
10,
46+
15,
47+
16,
48+
17,
49+
18,
50+
"nightly"
51+
],
52+
"safari": [
53+
5,
54+
6
55+
],
56+
"opera": [
57+
12
58+
]
59+
}
60+
},
61+
"licenses": [{
62+
"type" : "MIT",
63+
"url" : "https://github.com/Gozala/enchain/License.md"
64+
}]
2565
}

test/common-index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use strict";
2+
3+
require("test").run(require("./index"))

tests/test-querystring.js renamed to test/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,3 @@ exports['test nested in colon'] = function(assert) {
208208

209209
assert.deepEqual({}, qs.parse(), 'parse undefined');
210210
};
211-
212-
require("test").run(exports);

test/tap-index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use strict";
2+
3+
require("retape")(require("./index"))

0 commit comments

Comments
 (0)