opsdash-app/opsdash/test/NoteSnippetWidget.test.ts
2026-01-13 15:18:21 +07:00

18 lines
497 B
TypeScript

import { describe, it, expect } from 'vitest'
import { mount } from '@vue/test-utils'
import NoteSnippetWidget from '../src/components/widgets/notes/NoteSnippetWidget.vue'
describe('NoteSnippetWidget', () => {
it('hides the header when showHeader is false', () => {
const wrapper = mount(NoteSnippetWidget, {
props: {
notesCurr: 'Current note',
title: 'Snippet',
showHeader: false,
},
})
expect(wrapper.find('h3').exists()).toBe(false)
})
})