import { describe, it, expect } from 'vitest'
import { VTTParser } from '../vtt'

describe('VTTParser Simple', () => {
  it('should parse basic VTT', () => {
    const vtt = `WEBVTT

00:00:01.000 --> 00:00:03.000
Hello world`

    const cues = VTTParser.parse(vtt)
    expect(cues).toHaveLength(1)
    expect(cues[0].text).toBe('Hello world')
  })
})