Skip to content

Commit 039cbbc

Browse files
committed
chore: use exact value instead of match
1 parent a38641c commit 039cbbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/__tests__/logger.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ describe('Logger in nodejs', () => {
4545

4646
expect(spyingStdout).toBeCalledTimes(1);
4747
expect(spyingStdout).toBeCalledWith(expect.stringContaining('separator'));
48-
expect(spyingStdout).toBeCalledWith(expect.stringMatching(/separator.*separator.*separator/));
48+
expect(spyingStdout).toBeCalledWith(
49+
colorize.gray(
50+
'separatorseparatorseparatorseparatorseparatorseparatorseparatorseparatorseparato'
51+
)
52+
);
4953
});
5054

5155
it('should call output with indent', () => {

0 commit comments

Comments
 (0)