finally works

This commit is contained in:
Craig Condon
2012-11-30 20:11:55 -06:00
parent 45dd2d2680
commit 11aaccdf66
4443 changed files with 947516 additions and 27340 deletions
+7
View File
@@ -27,4 +27,11 @@ try {
assert.equal(e.message, 'Body attribute missing in multipart.')
}
try {
request(local, {multipart: [{}]})
assert.fail("Should have throw")
} catch(e) {
assert.equal(e.message, 'Body attribute missing in multipart.')
}
console.log("All tests passed.")