koel/resources/assets/js/components/profile-preferences/ThemeList.spec.ts

13 lines
386 B
TypeScript
Raw Normal View History

import { expect, it } from 'vitest'
import { themeStore } from '@/stores'
2022-05-13 17:58:38 +00:00
import UnitTestCase from '@/__tests__/UnitTestCase'
import ThemeList from './ThemeList.vue'
2022-05-13 17:58:38 +00:00
new class extends UnitTestCase {
protected test () {
it('displays all themes', () => {
expect(this.render(ThemeList).getAllByTestId('theme-card').length).toEqual(themeStore.state.themes.length)
})
}
}