@eluvio/elv-js-helpers
Version:
A collection of Javascript helper functions used by several Eluvio libraries.
18 lines (16 loc) • 711 B
JavaScript
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD
const TH = require('../../../test-helpers')
const nowUTCStr = TH.requireSrcFile('Datetime/nowUTCStr')
describe('nowUTCStr JSDoc example', () => {
it('should execute correctly as described', () => {
'use strict'
const isGT = TH.requireSrcFile('Boolean/isGT')
const kind = TH.requireSrcFile('Validation/kind')
const currentUTCTimestamp = nowUTCStr()
kind(currentUTCTimestamp).should.eql('String')
// string value is larger (later) than 2025-01-01T01:00:00Z:
isGT('2025-01-01T01:00:00Z', currentUTCTimestamp).should.eql(true)
currentUTCTimestamp.endsWith('Z').should.eql(true)
})
})