UNPKG

@eluvio/elv-js-helpers

Version:

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

13 lines (11 loc) 465 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const ObjectModel = TH.requireSrcFile('Model/ObjectModel') describe('ObjectModel JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' ObjectModel({foo: 'bar'}).should.eql({foo: 'bar'}) TH.expect(() => ObjectModel('foo')).to.throw('expecting Object, got String "foo"') }) })