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

18 lines
474 B
TypeScript

import { describe, it, expect } from 'vitest'
import { mount } from '@vue/test-utils'
import TextBlockWidget from '../src/components/widgets/text/TextBlockWidget.vue'
describe('TextBlockWidget', () => {
it('hides the header when showHeader is false', () => {
const wrapper = mount(TextBlockWidget, {
props: {
title: 'Status',
body: 'Body',
showHeader: false,
},
})
expect(wrapper.find('h3').exists()).toBe(false)
})
})