mirror of
https://github.com/koel/koel
synced 2024-12-20 17:43:36 +00:00
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
|
import { expect, it } from 'vitest'
|
||
|
import ComponentTestCase from '@/__tests__/ComponentTestCase'
|
||
|
import ScreenEmptyState from './ScreenEmptyState.vue'
|
||
|
|
||
|
new class extends ComponentTestCase {
|
||
|
protected test () {
|
||
|
it('renders', () => {
|
||
|
expect(this.render(ScreenEmptyState, {
|
||
|
slots: {
|
||
|
icon: '<i class="my-icon"/>',
|
||
|
default: 'Nothing here'
|
||
|
}
|
||
|
}).html()).toMatchSnapshot()
|
||
|
})
|
||
|
}
|
||
|
}
|