@eluvio/elv-js-helpers
Version:
A collection of Javascript helper functions used by several Eluvio libraries.
13 lines (11 loc) • 434 B
JavaScript
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD
const TH = require('../../../test-helpers')
const toPairs = TH.requireSrcFile('Conversion/toPairs')
describe('toPairs JSDoc example', () => {
it('should execute correctly as described', () => {
'use strict'
const kvPairs = toPairs({a: 1, b: 2})
kvPairs.inspect().should.eql('List [ Pair( "a", 1 ), Pair( "b", 2 ) ]')
})
})