UNPKG

@eluvio/elv-js-helpers

Version:

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

16 lines (14 loc) 506 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const Pair = TH.requireSrcFile('ADT/Pair') describe('Pair JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' const p = Pair(1, 2) p.inspect().should.eql('Pair( 1, 2 )') p.fst().should.eql(1) p.snd().should.eql(2) TH.expect(() => Pair(42)).to.throw('Pair: Must provide a first and second value') }) })