UNPKG

@eluvio/elv-js-helpers

Version:

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

19 lines (17 loc) 586 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const isNil = TH.requireSrcFile('Boolean/isNil') describe('isNil JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' isNil().should.eql(true) isNil(undefined).should.eql(true) isNil(null).should.eql(true) isNil(42).should.eql(false) // extra argument ignored: isNil(42, undefined).should.eql(false) // extra argument ignored: isNil(undefined, 42).should.eql(true) }) })