UNPKG

@eluvio/elv-js-helpers

Version:

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

13 lines (11 loc) 470 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const _boundUpperErrMsg = TH.requireSrcFile('ModelAssertion/_boundUpperErrMsg') describe('_boundUpperErrMsg JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' _boundUpperErrMsg(42, true).should.eql('must be <= 42') _boundUpperErrMsg(42, false).should.eql('must be < 42') }) })