UNPKG

@eluvio/elv-js-helpers

Version:

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

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