Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

View File

@@ -0,0 +1,16 @@
'use strict'
process.env.TZ = 'UTC'
const tap = require('tap')
const isValidDate = require('./is-valid-date')
tap.test('returns true for valid dates', async t => {
t.same(isValidDate(new Date()), true)
})
tap.test('returns false for non-dates and invalid dates', async t => {
t.plan(2)
t.same(isValidDate('20210621'), false)
t.same(isValidDate(new Date('2021-41-99')), false)
})