ts-audio
Version:
13 lines (10 loc) • 366 B
text/typescript
import { describe, it, expect } from 'bun:test'
import { throwsError } from '../utils'
describe('utils', () => {
describe('throwsError', () => {
it('should throw an error using the message passed by parameter', () => {
const error = 'sorry, something failed'
expect(() => throwsError(error)).toThrowError(`\`ts-audio\`: ${error}`)
})
})
})