import { describe, expect, it } from 'vite-plus/test'
import { createHarness } from '@/__tests__/TestHarness'
import Component from './EpisodeProgress.vue'

describe('episodeProgress.vue', () => {
  const h = createHarness()

  it('renders', () => {
    const { html } = h.render(Component, {
      props: {
        episode: h.factory('episode').make({
          length: 300,
        }),
        position: 60,
      },
    })

    expect(html()).toMatchSnapshot()
  })
})
