UNPKG

@eluvio/elv-js-helpers

Version:

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

17 lines (15 loc) 791 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const UUIDStrModel = TH.requireSrcFile('Model/UUIDStrModel') describe('UUIDStrModel JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' TH.expect(() => UUIDStrModel('0')).to.throw( `Value is not in UUID format '00000000-0000-0000-0000-000000000000' (got: "0")` ) UUIDStrModel('ABCDEF00-0000-0000-0000-000000000000').should.eql('ABCDEF00-0000-0000-0000-000000000000') UUIDStrModel('abcdef00-0000-0000-0000-000000000000').should.eql('abcdef00-0000-0000-0000-000000000000') UUIDStrModel('abcdef00-0000-0000-0000-ABCDEF000000').should.eql('abcdef00-0000-0000-0000-ABCDEF000000') }) })