solved unnecessary date creation regarding one invalid date testing

This commit is contained in:
joseji 2022-09-29 11:39:01 +02:00
parent a756f0a4cc
commit df25197842

View File

@ -1025,7 +1025,7 @@ describe('AdminResolver', () => {
it('logs the error thrown', () => {
expect(logger.error).toBeCalledWith(
'No information for available creations with the given creationDate=',
new Date('not-valid').toString(),
'Invalid Date',
)
})
})