Skip to content

Commit

Permalink
Fix timestamp expectations for latest Node
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwebbio committed Mar 23, 2023
1 parent e2e7b46 commit 4664c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/log.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Log', () => {

expect(consoleLog).toHaveBeenCalledTimes(1);
expect(consoleLog).toHaveBeenCalledWith(
`${chalk.dim('8/27/2022, 8:17:31AM')}: Hello world`
`${chalk.dim('8/27/2022, 8:17:31 AM')}: Hello world`
);
});

Expand All @@ -37,7 +37,7 @@ describe('Log', () => {
expect(consoleLog).toHaveBeenCalledTimes(1);
expect(consoleLog).toHaveBeenCalledWith(
// eslint-disable-next-line no-useless-escape
`${chalk.dim('8/27/2022, 8:17:31AM')}: {\"foo\":\"bar\"}`
`${chalk.dim('8/27/2022, 8:17:31 AM')}: {\"foo\":\"bar\"}`
);
});
});
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('Log', () => {

expect(consoleError).toHaveBeenCalledTimes(1);
expect(consoleError).toHaveBeenCalledWith(
`${chalk.dim('8/27/2022, 8:17:31AM')}: ${chalk.red('Hello world')}`
`${chalk.dim('8/27/2022, 8:17:31 AM')}: ${chalk.red('Hello world')}`
);
});
});
Expand Down

0 comments on commit 4664c60

Please sign in to comment.