diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-12 15:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-12 15:08:27 +0300 |
commit | e0d7577e29dcab90623e1f38cf11b351c665ee23 (patch) | |
tree | 5a34f26be66301f1af9e36b10a67dfca01fed8ec /spec/frontend/vue_shared/components/slot_switch_spec.js | |
parent | 60e7627c998b74d48df10b9a7759d6038a1f139c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components/slot_switch_spec.js')
-rw-r--r-- | spec/frontend/vue_shared/components/slot_switch_spec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/frontend/vue_shared/components/slot_switch_spec.js b/spec/frontend/vue_shared/components/slot_switch_spec.js index f25b9877aba..daca4977817 100644 --- a/spec/frontend/vue_shared/components/slot_switch_spec.js +++ b/spec/frontend/vue_shared/components/slot_switch_spec.js @@ -1,4 +1,5 @@ import { shallowMount } from '@vue/test-utils'; +import { assertProps } from 'helpers/assert_props'; import SlotSwitch from '~/vue_shared/components/slot_switch.vue'; @@ -26,7 +27,9 @@ describe('SlotSwitch', () => { }); it('throws an error if activeSlotNames is missing', () => { - expect(createComponent).toThrow('[Vue warn]: Missing required prop: "activeSlotNames"'); + expect(() => assertProps(SlotSwitch, {})).toThrow( + '[Vue warn]: Missing required prop: "activeSlotNames"', + ); }); it('renders no slots if activeSlotNames is empty', () => { |