Skip to content

Commit

Permalink
Resolved logic error in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
coryhouse committed Jul 19, 2016
1 parent 64afbea commit 8c5a173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/fuelSavingsReducer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Reducers::FuelSavings', () => {
const action = { type: 'unknown' };
const expected = getInitialState();

expect(reducer(getInitialState(), action)).to.deep.equal(expected); // Notice use of deep because it's a nested object
expect(reducer(undefined, action)).to.deep.equal(expected); // Notice use of deep because it's a nested object
// expect(reducer(undefined, action)).to.equal(expected); // Fails. Not deeply equal
});

Expand Down

0 comments on commit 8c5a173

Please sign in to comment.