koel/resources/assets/js/components/ui/ScreenHeader.spec.ts

18 lines
449 B
TypeScript
Raw Normal View History

import { expect, it } from 'vitest'
2022-05-13 17:58:38 +00:00
import UnitTestCase from '@/__tests__/UnitTestCase'
import ScreenHeader from './ScreenHeader.vue'
2022-05-13 17:58:38 +00:00
new class extends UnitTestCase {
protected test () {
it('renders', () => {
expect(this.render(ScreenHeader, {
slots: {
default: 'This Header',
meta: '<p>Some meta</p>',
controls: '<nav>Some controls</nav>'
}
}).html()).toMatchSnapshot()
})
}
}