mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
import { expect, it } from 'vitest'
|
|
import UnitTestCase from '@/__tests__/UnitTestCase'
|
|
import ScreenHeader from './ScreenHeader.vue'
|
|
|
|
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()
|
|
})
|
|
}
|
|
}
|