Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('can call midnight twice', function () {
let c = new julian.Calendar().fromDate(new Date(tests[1].d))
let mn = cal.midnight(c.toJDE())
mn = cal.midnight(mn)
assert.equal(toDate(mn).toISOString(), new Date(tests[1].exp).toISOString())
})
})
function toDate (jde) {
return new julian.Calendar().fromJDE(jde).toDate()
}