Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 06:06:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 06:06:53 +0300
commit0f5d9f4ba36dc94ebb547e28ffb6f56611bd3004 (patch)
tree3b7095399c8dce3e983cea1119bfed41de01ffa9 /spec
parent101796f3bcf4a9f67431f40a115de2d762485655 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/frontend/ci/runner/components/registration/registration_token_reset_dropdown_item_spec.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/frontend/ci/runner/components/registration/registration_token_reset_dropdown_item_spec.js b/spec/frontend/ci/runner/components/registration/registration_token_reset_dropdown_item_spec.js
index bfdde922e17..db54bf0c80e 100644
--- a/spec/frontend/ci/runner/components/registration/registration_token_reset_dropdown_item_spec.js
+++ b/spec/frontend/ci/runner/components/registration/registration_token_reset_dropdown_item_spec.js
@@ -33,6 +33,8 @@ describe('RegistrationTokenResetDropdownItem', () => {
const clickSubmit = () => findModal().vm.$emit('primary', mockEvent);
const createComponent = ({ props, provide = {} } = {}) => {
+ showToast = jest.fn();
+
wrapper = shallowMount(RegistrationTokenResetDropdownItem, {
provide,
propsData: {
@@ -45,9 +47,12 @@ describe('RegistrationTokenResetDropdownItem', () => {
directives: {
GlModal: createMockDirective('gl-modal'),
},
+ mocks: {
+ $toast: {
+ show: showToast,
+ },
+ },
});
-
- showToast = wrapper.vm.$toast ? jest.spyOn(wrapper.vm.$toast, 'show') : null;
};
beforeEach(() => {