mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
|
import { expect, it } from 'vitest'
|
||
|
import ComponentTestCase from '@/__tests__/ComponentTestCase'
|
||
|
import ViewModeSwitch from './ViewModeSwitch.vue'
|
||
|
|
||
|
new class extends ComponentTestCase {
|
||
|
protected test () {
|
||
|
it.each<[ArtistAlbumViewMode]>([['thumbnails'], ['list']])('renders %s mode', mode => {
|
||
|
expect(this.render(ViewModeSwitch, {
|
||
|
props: {
|
||
|
mode
|
||
|
}
|
||
|
}).html()).toMatchSnapshot()
|
||
|
})
|
||
|
}
|
||
|
}
|