koel/resources/assets/js/components/podcast/EpisodePogress.spec.ts
2024-10-14 00:37:01 +07:00

21 lines
499 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()
})
}
}