Skip to content

Commit

Permalink
[Tests] shim Object.assign in tests so that babel-eslint works in…
Browse files Browse the repository at this point in the history
… older nodes.
  • Loading branch information
ljharb committed Jan 20, 2017
1 parent 917bc87 commit a4f4b60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"coveralls": "cat ./reports/coverage/lcov.info | coveralls",
"lint": "eslint ./",
"test": "npm run lint && npm run unit-test",
"unit-test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --reporter dot"
"unit-test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --reporter dot --opts tests/mocha.opts"
},
"files": [
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions tests/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require ./tests/setup
3 changes: 3 additions & 0 deletions tests/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

require('object.assign/shim')();

0 comments on commit a4f4b60

Please sign in to comment.