mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
21 lines
496 B
TypeScript
21 lines
496 B
TypeScript
import { expect, it } from 'vitest'
|
|
import UnitTestCase from '@/__tests__/UnitTestCase'
|
|
import Component from './EpisodeProgress.vue'
|
|
import factory from '@/__tests__/factory'
|
|
|
|
new class extends UnitTestCase {
|
|
protected test () {
|
|
it('renders', () => {
|
|
const { html } = this.render(Component, {
|
|
props: {
|
|
episode: factory('episode', {
|
|
length: 300
|
|
}),
|
|
position: 60
|
|
}
|
|
})
|
|
|
|
expect(html()).toMatchSnapshot()
|
|
})
|
|
}
|
|
}
|