UNPKG

@eluvio/elv-js-helpers

Version:

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

17 lines (15 loc) 525 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const and = TH.requireSrcFile('Functional/and') describe('and JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' const isEven = x => x % 2 === 0 const isNegative = x => x < 0 const isNegEven = and(isEven, isNegative) isNegEven(3).should.eql(false) isNegEven(2).should.eql(false) isNegEven(-2).should.eql(true) }) })