Load babel-polyfill in tests
Object.values() isn't available natively, so use polyfill for it.
This commit is contained in:
parent
04ef0262af
commit
e5e9a3819e
2 changed files with 9 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
||||||
"babel": "^5.8.23",
|
"babel": "^5.8.23",
|
||||||
"babel-core": "^5.8.38",
|
"babel-core": "^5.8.38",
|
||||||
"babel-loader": "^5.4.0",
|
"babel-loader": "^5.4.0",
|
||||||
|
"babel-polyfill": "^6.5.0",
|
||||||
"expect": "^1.16.0",
|
"expect": "^1.16.0",
|
||||||
"json-loader": "^0.5.3",
|
"json-loader": "^0.5.3",
|
||||||
"karma": "^0.13.22",
|
"karma": "^0.13.22",
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
* application to provide
|
* application to provide
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* this is a convenient place to ensure we load the compatibility libraries we expect our
|
||||||
|
* app to provide
|
||||||
|
*/
|
||||||
|
|
||||||
|
// for ES6 stuff like startsWith() and Object.values() that babel doesn't do by
|
||||||
|
// default
|
||||||
|
require('babel-polyfill');
|
||||||
|
|
||||||
var sdk = require("../src/index");
|
var sdk = require("../src/index");
|
||||||
|
|
||||||
var skin = require('../src/component-index.js');
|
var skin = require('../src/component-index.js');
|
||||||
|
|
Loading…
Reference in a new issue