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

17 lines
418 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 ScreenEmptyState from './ScreenEmptyState.vue'
2022-05-13 17:58:38 +00:00
new class extends UnitTestCase {
protected test () {
it('renders', () => {
expect(this.render(ScreenEmptyState, {
slots: {
icon: '<i class="my-icon"/>',
default: 'Nothing here'
}
}).html()).toMatchSnapshot()
})
}
}