Skip to content

Commit

Permalink
Strengthen expect undefined tests (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes authored and floatdrop committed Dec 23, 2016
1 parent 53b11e3 commit 4b7fb5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ test('content-length header with Stream body', async t => {
body: intoStream(['wow']),
json: true
});
t.is(body['transfer-encoding'], 'chunked', 'likely failed to get headers at all');
t.is(body['content-length'], undefined);
});

Expand All @@ -110,6 +111,7 @@ test('content-length header disabled for chunked transfer-encoding', async t =>
'transfer-encoding': 'chunked'
}
});
t.is(body['transfer-encoding'], 'chunked', 'likely failed to get headers at all');
t.is(body['content-length'], undefined);
});

Expand Down

0 comments on commit 4b7fb5d

Please sign in to comment.