koel/resources/assets/js/components/podcast/EpisodePogress.spec.ts
2024-07-06 17:45:07 +02:00

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()
})
}
}