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