Skip to content

Commit 0e0e842

Browse files
committed
add dependencies for tests; remove bad assertions
1 parent 9eaddad commit 0e0e842

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules/
2-

package.json

+27-10
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,38 @@
88
"type": "git",
99
"url": "git://github.com/dandean/express-form.git"
1010
},
11-
"contributors": [
11+
"contributors": [
1212
"Marc Harter <[email protected]>",
1313
"Sugarstack <@sugarstack>"
1414
],
15-
"keywords" : ["form", "validator", "validation", "express"],
15+
"keywords": [
16+
"form",
17+
"validator",
18+
"validation",
19+
"express"
20+
],
1621
"dependencies": {
1722
"validator": ">= 0.1.2",
1823
"object-additions": ">= 0.5.0"
1924
},
20-
"main" : "index",
21-
"bugs" : { "url" : "http://github.com/dandean/express-form/issues" },
22-
"scripts": { "test": "expresso" },
23-
"engines": { "node": ">=0.2.2" },
24-
"licenses" : [{
25-
"type" : "MIT",
26-
"url" : "http://github.com/dandean/express-form/raw/master/LICENSE"
27-
}]
25+
"main": "index",
26+
"bugs": {
27+
"url": "http://github.com/dandean/express-form/issues"
28+
},
29+
"scripts": {
30+
"test": "expresso"
31+
},
32+
"engines": {
33+
"node": ">=0.2.2"
34+
},
35+
"licenses": [
36+
{
37+
"type": "MIT",
38+
"url": "http://github.com/dandean/express-form/raw/master/LICENSE"
39+
}
40+
],
41+
"devDependencies": {
42+
"expresso": "~0.9.2",
43+
"express": "~2.5.11"
44+
}
2845
}

test/form.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ module.exports = {
1414
form(validate("field").isEmail())(request, {});
1515
assert.strictEqual(request.form.isValid, true);
1616

17-
assert["throws"](function() {
18-
request.form.isValid = false;
19-
});
20-
17+
// form.isValid is a getter only
18+
request.form.isValid = false;
2119
assert.strictEqual(request.form.isValid, true);
2220
},
2321

0 commit comments

Comments
 (0)