UNPKG

@eluvio/elv-js-helpers

Version:

A collection of Javascript helper functions used by several Eluvio libraries.

11 lines (7 loc) 266 B
const TH = require('../../../test-helpers') const throwError = TH.requireSrcFile('Misc/throwError') describe('throwError', () => { it('should throw an exception with the message passed in', () => { TH.expect(() => throwError('foo')).to.throw('foo') }) })