UNPKG

ts-audio

Version:

`ts-audio` is an agnostic and easy-to-use library to work with the `AudioContext` API and create Playlists.

11 lines (9 loc) 317 B
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}`) }) }) })