diff options
Diffstat (limited to 'spec/frontend/vue_shared/components/help_popover_spec.js')
-rw-r--r-- | spec/frontend/vue_shared/components/help_popover_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/help_popover_spec.js b/spec/frontend/vue_shared/components/help_popover_spec.js index 6fd5ae0e946..77c03dc0c3c 100644 --- a/spec/frontend/vue_shared/components/help_popover_spec.js +++ b/spec/frontend/vue_shared/components/help_popover_spec.js @@ -96,6 +96,20 @@ describe('HelpPopover', () => { }); }); + describe('with alternative icon', () => { + beforeEach(() => { + createComponent({ + props: { + icon: 'information-o', + }, + }); + }); + + it('uses the given icon', () => { + expect(findQuestionButton().props('icon')).toBe('information-o'); + }); + }); + describe('with custom slots', () => { const titleSlot = '<h1>title</h1>'; const defaultSlot = '<strong>content</strong>'; |