UNPKG

@eluvio/elv-js-helpers

Version:

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

17 lines (15 loc) 594 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const now = TH.requireSrcFile('Datetime/now') describe('now JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' const isGT = TH.requireSrcFile('Boolean/isGT') const kind = TH.requireSrcFile('Validation/kind') const currentDatetime = now() kind(currentDatetime).should.eql('Date') // later than 2022-12-02T16:53:20Z: isGT(1670000000000, currentDatetime.valueOf()).should.eql(true) }) })