UNPKG

@eluvio/elv-js-helpers

Version:

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

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