UNPKG

@eluvio/elv-js-helpers

Version:

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

12 lines (9 loc) 337 B
const TH = require('../../../test-helpers') const boolsToInt = TH.requireSrcFile('Conversion/boolsToInt') describe('boolsToInt', () => { it('should work as expected', () => { boolsToInt([false, false, true]).should.equal(1) boolsToInt([true, false]).should.equal(2) boolsToInt([true, true, true]).should.equal(7) }) })