From 88ed5354ad1846e1493c0f66cb07eed90702f50d Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Sat, 9 Jan 2016 18:10:03 -0800 Subject: [PATCH] Make tests work when there is no Blob support --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 022f020..45c1162 100644 --- a/test/test.js +++ b/test/test.js @@ -316,7 +316,7 @@ suite('Request', function() { assert.equal(req.headers.get('content-type'), 'text/plain;charset=UTF-8') }) - test('construct with Blob body and type sets Content-Type header', function() { + ;(Request.prototype.blob ? test : test.skip)('construct with Blob body and type sets Content-Type header', function() { var req = new Request('https://fetch.spec.whatwg.org/', { method: 'post', body: new Blob(['test'], { type: 'text/plain' }), @@ -515,7 +515,7 @@ suite('Response', function() { assert.equal(r.headers.get('content-type'), 'text/plain;charset=UTF-8') }) - test('construct with Blob body and type sets Content-Type header', function() { + ;(Response.prototype.blob ? test : test.skip)('construct with Blob body and type sets Content-Type header', function() { var r = new Response(new Blob(['test'], { type: 'text/plain' })) assert.equal(r.headers.get('content-type'), 'text/plain') }) -- GitLab