From 114e2bc7702c98f54bd2beef06349f7f107a44bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 17 May 2018 15:38:37 +0200 Subject: [PATCH] Quit testing CJS exports directly First of all, loading our UMD dist file in Node doesn't work due to usage of `self` within `fetch.js`. Second, we don't need to test exports, since we trust Rollup doing its job. --- script/test | 2 -- test/cjs.js | 11 ----------- 2 files changed, 13 deletions(-) delete mode 100644 test/cjs.js diff --git a/script/test b/script/test index 0fd46821..bc471d43 100755 --- a/script/test +++ b/script/test @@ -7,5 +7,3 @@ if [ -n "$SAUCE_BROWSER" ]; then else ./script/phantomjs fi - -./node_modules/mocha/bin/mocha test/cjs.js diff --git a/test/cjs.js b/test/cjs.js deleted file mode 100644 index f414ca76..00000000 --- a/test/cjs.js +++ /dev/null @@ -1,11 +0,0 @@ -var isFunction = require('chai').assert.isFunction -var WHATWGFetch = require('../') - -describe('Common JS exports', function() { - it('should provide all the CJS exports', function() { - isFunction(WHATWGFetch.fetch) - isFunction(WHATWGFetch.Headers) - isFunction(WHATWGFetch.Request) - isFunction(WHATWGFetch.Response) - }) -})