koel/resources/assets/js/components/podcast/EpisodePogress.spec.ts

22 lines
496 B
TypeScript
Raw Normal View History

2024-06-02 07:52:31 +00:00
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()
})
}
}