2022-05-12 09:03:40 +00:00
|
|
|
import { expect, it } from 'vitest'
|
2022-05-13 17:58:38 +00:00
|
|
|
import UnitTestCase from '@/__tests__/UnitTestCase'
|
2022-05-12 09:03:40 +00:00
|
|
|
import ScreenHeader from './ScreenHeader.vue'
|
|
|
|
|
2022-05-13 17:58:38 +00:00
|
|
|
new class extends UnitTestCase {
|
2022-05-12 09:03:40 +00:00
|
|
|
protected test () {
|
|
|
|
it('renders', () => {
|
|
|
|
expect(this.render(ScreenHeader, {
|
|
|
|
slots: {
|
|
|
|
default: 'This Header',
|
|
|
|
meta: '<p>Some meta</p>',
|
2022-07-21 09:54:38 +00:00
|
|
|
controls: '<nav>Some controls</nav>',
|
|
|
|
thumbnail: '<img src="https://placekitten.com/200/300" />'
|
2022-05-12 09:03:40 +00:00
|
|
|
}
|
|
|
|
}).html()).toMatchSnapshot()
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|