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