diff options
Diffstat (limited to 'spec/frontend/sidebar/lock/edit_form_buttons_spec.js')
-rw-r--r-- | spec/frontend/sidebar/lock/edit_form_buttons_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/sidebar/lock/edit_form_buttons_spec.js b/spec/frontend/sidebar/lock/edit_form_buttons_spec.js index 49283ea99cf..1673425947e 100644 --- a/spec/frontend/sidebar/lock/edit_form_buttons_spec.js +++ b/spec/frontend/sidebar/lock/edit_form_buttons_spec.js @@ -1,5 +1,5 @@ import { mount } from '@vue/test-utils'; -import { deprecatedCreateFlash as flash } from '~/flash'; +import createFlash from '~/flash'; import { createStore as createMrStore } from '~/mr_notes/stores'; import createStore from '~/notes/stores'; import EditFormButtons from '~/sidebar/components/lock/edit_form_buttons.vue'; @@ -130,7 +130,7 @@ describe('EditFormButtons', () => { }); it('does not flash an error message', () => { - expect(flash).not.toHaveBeenCalled(); + expect(createFlash).not.toHaveBeenCalled(); }); }); @@ -165,9 +165,9 @@ describe('EditFormButtons', () => { }); it('calls flash with the correct message', () => { - expect(flash).toHaveBeenCalledWith( - `Something went wrong trying to change the locked state of this ${issuableDisplayName}`, - ); + expect(createFlash).toHaveBeenCalledWith({ + message: `Something went wrong trying to change the locked state of this ${issuableDisplayName}`, + }); }); }); }); |