Skip to content

Commit 788c462

Browse files
author
David Frank
committed
make sure we default to 200 on new response
1 parent 6a0dd46 commit 788c462

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,11 @@ describe('node-fetch', function() {
13551355
});
13561356
});
13571357

1358+
it('should default to 200 as status code', function() {
1359+
var res = new Response(null);
1360+
expect(res.status).to.equal(200);
1361+
});
1362+
13581363
it('should support parsing headers in Request constructor', function() {
13591364
url = base;
13601365
var req = new Request(url, {

0 commit comments

Comments
 (0)