Commit 7fa7f3e3 authored by Filipa Lacerda's avatar Filipa Lacerda

Use `toEqual` for the matchers

parent 6f0b16e3
...@@ -12,9 +12,9 @@ export default (action, payload, state, expectedMutations, done) => { ...@@ -12,9 +12,9 @@ export default (action, payload, state, expectedMutations, done) => {
const mutation = expectedMutations[count]; const mutation = expectedMutations[count];
try { try {
expect(mutation.type).to.equal(type); expect(mutation.type).toEqual(type);
if (payload) { if (payload) {
expect(mutation.payload).to.deep.equal(payload); expect(mutation.payload).toEqual(payload);
} }
} catch (error) { } catch (error) {
done.fail(error); done.fail(error);
...@@ -31,7 +31,7 @@ export default (action, payload, state, expectedMutations, done) => { ...@@ -31,7 +31,7 @@ export default (action, payload, state, expectedMutations, done) => {
// check if no mutations should have been dispatched // check if no mutations should have been dispatched
if (expectedMutations.length === 0) { if (expectedMutations.length === 0) {
expect(count).to.equal(0); expect(count).toEqual(0);
done(); done();
} }
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment