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