UNPKG

@eluvio/elv-js-helpers

Version:

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

14 lines (12 loc) 469 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const boolsToInt = TH.requireSrcFile('Conversion/boolsToInt') describe('boolsToInt JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' boolsToInt([false, false, true]).should.eql(1) boolsToInt([true, false]).should.eql(2) boolsToInt([true, true, true]).should.eql(7) }) })