Skip to content

Commit

Permalink
still having trouble with t.plan behavior so switched to using .end f…
Browse files Browse the repository at this point in the history
…or test parted form
  • Loading branch information
nrstott committed Jan 3, 2012
1 parent 22672fe commit 4df21ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/middleware.test.js
Expand Up @@ -221,9 +221,10 @@ test("test parted form", function(t) {

parted = new bogart.middleware.Parted(function(req) {
t.ok(req, 'Request should not be falsey');
t.ok(!!req.body);
t.ok(!!req.body.hello);
t.ok(req.body, 'Body should not be falsey');
t.ok(req.body.hello, 'Hello should not be falsey');
t.equal(req.body.hello.length, 2);
t.end();
});

parted({
Expand All @@ -236,8 +237,6 @@ test("test parted form", function(t) {
process.nextTick(function() {
bodyDefer.resolve();
});

t.plan(4);
});

test("test parted multipart", function(t) {
Expand Down

0 comments on commit 4df21ac

Please sign in to comment.