What does the following error mean, and how should I fix it?
$ npm test
> location-autosuggest@3.0.0 test /Users/mishamoroshko/location-autosuggest
> mocha test --compilers js:babel/register
compareKeys()
should return -1
1) when first key is different
0 passing (301ms)
1 failing
1) compareKeys() should return -1 when first key is different:
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
at Context.<anonymous> (compare-keys/compare-keys.test.js:3:16)
Here are the relevant parts:
compare-keys/compare-keys.test.js
1. 'use strict';
2.
3. import { expect } from 'chai';
package.json
"scripts": {
"test": "mocha test --compilers js:babel/register"
}
.babelrc
{
"stage": 0
}
mocha.opts
I don't have one.
Versions
- babel: 5.5.1
- mocha: 2.2.5
- chai: 3.0.0