Fix tests added in the last commit

This commit is contained in:
Timothy Gu 2016-12-05 15:21:19 -08:00
parent e7a13a5314
commit 4d944365df
1 changed files with 3 additions and 1 deletions

View File

@ -1509,8 +1509,9 @@ describe(`node-fetch with FOLLOW_SPEC = ${defaultFollowSpec}`, () => {
});
});
it('should support blob() method in Request constructor', function() {
it('should support blob() method in Response constructor', function() {
const res = new Response('a=1', {
method: 'POST',
headers: {
'Content-Type': 'text/plain'
}
@ -1657,6 +1658,7 @@ describe(`node-fetch with FOLLOW_SPEC = ${defaultFollowSpec}`, () => {
it('should support blob() method in Request constructor', function() {
url = base;
var req = new Request(url, {
method: 'POST',
body: 'a=1',
headers: {
'Content-Type': 'text/plain'