Rearranging order of tests for better picture of what is happening on cicd

This commit is contained in:
Collin Duncan 2024-04-16 10:24:12 +02:00
parent 51080310d8
commit 430ab33627
No known key found for this signature in database

View file

@ -108,9 +108,9 @@ describe('reservations.cron', () => {
const { timestamp: goTimeInvocation } =
loggerInvocationDates.find(({ msg }) => msg === `It's go-time`) ?? {}
expect(goTimeInvocation).toBeDefined()
expect(goTimeInvocation?.getHours()).toEqual(7)
expect(goTimeInvocation?.getSeconds()).toEqual(0)
expect(goTimeInvocation?.getMilliseconds()).toBeLessThanOrEqual(100)
expect(goTimeInvocation?.getSeconds()).toEqual(0)
expect(goTimeInvocation?.getHours()).toEqual(7)
})
it('should perform reservations', () => {