@eluvio/elv-js-helpers
Version:
A collection of Javascript helper functions used by several Eluvio libraries.
19 lines (17 loc) • 642 B
JavaScript
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD
const TH = require('../../../test-helpers')
const isUndefined = TH.requireSrcFile('Boolean/isUndefined')
describe('isUndefined JSDoc example', () => {
it('should execute correctly as described', () => {
'use strict'
isUndefined().should.eql(true)
isUndefined(undefined).should.eql(true)
isUndefined(null).should.eql(false)
// extra argument ignored:
isUndefined(1, undefined).should.eql(false)
isUndefined('foo').should.eql(false)
// extra argument ignored:
isUndefined(undefined, 3).should.eql(true)
})
})