UNPKG

@eluvio/elv-js-helpers

Version:

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

13 lines (11 loc) 412 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const flatten = TH.requireSrcFile('Functional/flatten') describe('flatten JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' flatten([1, [2, [3]]]).should.eql([1, 2, 3]) flatten('abc').should.eql(['a', 'b', 'c']) }) })