Files
klz-cables.com/.pnpm-store/v10/files/64/7927c7a6e6d998f07189f40176e7b8129a486d4616bda2d8dc24a87490792efcc2c5c92619a6dce39e290526faf2ebf3ccb6172b3fed2866dec665acfeb327
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

17 lines
424 B
Plaintext

'use strict'
process.env.TZ = 'UTC'
const { test } = require('node:test')
const isValidDate = require('./is-valid-date')
test('returns true for valid dates', t => {
t.assert.strictEqual(isValidDate(new Date()), true)
})
test('returns false for non-dates and invalid dates', t => {
t.plan(2)
t.assert.strictEqual(isValidDate('20210621'), false)
t.assert.strictEqual(isValidDate(new Date('2021-41-99')), false)
})