Skip to content

Commit

Permalink
revert attempt to run tests in node6 - too legacy and unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed May 10, 2020
1 parent 252de86 commit 0c1fab9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test-browser:
else karma start --single-run --browsers=${TEST_BROWSER}; \
fi

test-node6: transpile
test-node6:
node test/node6.js

typecheck:
Expand All @@ -42,6 +42,7 @@ transpile:
build: transpile
if [ ! -d "cjs" ]; then mkdir cjs; fi
cp -r src/* cjs
cp src/package.json es5
rollup -c rollup.config.js

docs:
Expand Down
8 changes: 3 additions & 5 deletions test/node6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
require('babel-core').transform('code', {
plugins: ['transform-runtime'],
});
// const fetchMock = require('../es5/server');
const fetchMock = require('../es5/server');

// fetchMock.mock('http://it.at.there/', 200);
// fetchMock.fetchHandler('http://it.at.there/').catch(() => process.exit(2));

require('./server.js');
fetchMock.mock('http://it.at.there/', 200);
fetchMock.fetchHandler('http://it.at.there/').catch(() => process.exit(2));
1 change: 1 addition & 0 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}

0 comments on commit 0c1fab9

Please sign in to comment.