Skip to content

Commit

Permalink
removed unused dev-dependency chai-shallow-deep-equal
Browse files Browse the repository at this point in the history
  • Loading branch information
frankthelen committed Jan 13, 2018
1 parent 09f86d6 commit d576e60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"devDependencies": {
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chai-shallow-deep-equal": "^1.4.6",
"coveralls": "^3.0.0",
"eslint": "^4.15.0",
"eslint-config-airbnb-base": "^12.1.0",
Expand Down
4 changes: 2 additions & 2 deletions test/async.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ describe('Rules.evaluate() / async', () => {
const rools = new Rools();
await rools.register(rule1);
const result = await rools.evaluate({ user: frank });
expect(result.products).to.shallowDeepEqual(['dsl', 'm4g', 'm3g']);
expect(result.products).to.deep.equal(['dsl', 'm4g', 'm3g']);
});

it('should call async action / action with promises', async () => {
const rools = new Rools();
await rools.register(rule2);
const result = await rools.evaluate({ user: frank });
expect(result.products).to.shallowDeepEqual(['dsl', 'm4g', 'm3g']);
expect(result.products).to.deep.equal(['dsl', 'm4g', 'm3g']);
});
});
2 changes: 0 additions & 2 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const chaiShallowDeepEqual = require('chai-shallow-deep-equal');
const sinon = require('sinon');
const sinonChai = require('sinon-chai');

chai.use(chaiAsPromised);
chai.use(chaiShallowDeepEqual);
chai.use(sinonChai);

global.chai = chai;
Expand Down

0 comments on commit d576e60

Please sign in to comment.