@eluvio/elv-js-helpers
Version:
A collection of Javascript helper functions used by several Eluvio libraries.
15 lines (13 loc) • 556 B
JavaScript
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD
const TH = require('../../../test-helpers')
const throwsException = TH.requireSrcFile('Boolean/throwsException')
describe('throwsException JSDoc example', () => {
it('should execute correctly as described', () => {
'use strict'
throwsException(() => Object().foo.bar).should.eql(true)
throwsException(() => 42 / 42).should.eql(false)
// returns `true` if passed something that cannot be called.
throwsException(0).should.eql(true)
})
})