mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
|
import { expect, it } from 'vitest'
|
||
|
import { themeStore } from '@/stores'
|
||
|
import ComponentTestCase from '@/__tests__/ComponentTestCase'
|
||
|
import ThemeList from './ThemeList.vue'
|
||
|
|
||
|
new class extends ComponentTestCase {
|
||
|
protected test () {
|
||
|
it('displays all themes', () => {
|
||
|
expect(this.render(ThemeList).getAllByTestId('theme-card').length).toEqual(themeStore.state.themes.length)
|
||
|
})
|
||
|
}
|
||
|
}
|