import { GlButton, GlSprintf } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import DiscussionFilterNote from '~/notes/components/discussion_filter_note.vue'; import eventHub from '~/notes/event_hub'; describe('DiscussionFilterNote component', () => { let wrapper; const createComponent = () => { wrapper = shallowMount(DiscussionFilterNote, { stubs: { GlSprintf, }, }); }; beforeEach(() => { createComponent(); }); afterEach(() => { wrapper.destroy(); wrapper = null; }); it('timelineContent renders a string containing instruction for switching feed type', () => { expect(wrapper.find('[data-testid="discussion-filter-timeline-content"]').html()).toBe( '