diff options
Diffstat (limited to 'spec/frontend/profile/account/components/update_username_spec.js')
-rw-r--r-- | spec/frontend/profile/account/components/update_username_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/profile/account/components/update_username_spec.js b/spec/frontend/profile/account/components/update_username_spec.js index 0e56bccf27e..e331eed1863 100644 --- a/spec/frontend/profile/account/components/update_username_spec.js +++ b/spec/frontend/profile/account/components/update_username_spec.js @@ -44,7 +44,7 @@ describe('UpdateUsername component', () => { }); const findElements = () => { - const modal = wrapper.find(GlModal); + const modal = wrapper.findComponent(GlModal); return { modal, @@ -149,7 +149,7 @@ describe('UpdateUsername component', () => { await expect(wrapper.vm.onConfirm()).rejects.toThrow(); - expect(createFlash).toBeCalledWith({ + expect(createFlash).toHaveBeenCalledWith({ message: 'Invalid username', }); }); @@ -161,7 +161,7 @@ describe('UpdateUsername component', () => { await expect(wrapper.vm.onConfirm()).rejects.toThrow(); - expect(createFlash).toBeCalledWith({ + expect(createFlash).toHaveBeenCalledWith({ message: 'An error occurred while updating your username, please try again.', }); }); |