diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-03-29 10:33:44 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-03-29 10:33:44 +0100 |
commit | 7fa7f3e326ac55c00f3d6fac1fd077c6b78ff769 (patch) | |
tree | 31e9047ab145856c9f2e35716484a97e42920466 /spec/javascripts/helpers | |
parent | 6f0b16e31263e61392223bbf2d8d5be95e905982 (diff) | |
download | gitlab-ce-7fa7f3e326ac55c00f3d6fac1fd077c6b78ff769.tar.gz |
Use `toEqual` for the matchers
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r-- | spec/javascripts/helpers/vuex_action_helper.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/helpers/vuex_action_helper.js b/spec/javascripts/helpers/vuex_action_helper.js index 5524caaffb1..05e7e9377c0 100644 --- a/spec/javascripts/helpers/vuex_action_helper.js +++ b/spec/javascripts/helpers/vuex_action_helper.js @@ -12,9 +12,9 @@ export default (action, payload, state, expectedMutations, done) => { const mutation = expectedMutations[count]; try { - expect(mutation.type).to.equal(type); + expect(mutation.type).toEqual(type); if (payload) { - expect(mutation.payload).to.deep.equal(payload); + expect(mutation.payload).toEqual(payload); } } catch (error) { done.fail(error); @@ -31,7 +31,7 @@ export default (action, payload, state, expectedMutations, done) => { // check if no mutations should have been dispatched if (expectedMutations.length === 0) { - expect(count).to.equal(0); + expect(count).toEqual(0); done(); } }; |