Skip to content

Commit 1a10ef5

Browse files
committed
Added the missing property instead of relaxing the checking
1 parent cdb5606 commit 1a10ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/logger/tests/unit/formatters.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ describe('Formatters', () => {
371371
operator: 'strictEqual',
372372
code: 'ERR_ASSERTION',
373373
generatedMessage: true,
374+
diff: 'simple',
374375
},
375376
},
376377
{
@@ -450,7 +451,7 @@ describe('Formatters', () => {
450451
const formattedError = formatter.formatError(error);
451452

452453
// Assess
453-
expect(formattedError).toMatchObject({
454+
expect(formattedError).toEqual({
454455
stack: expect.arrayContaining([
455456
expect.stringMatching(fileNameRegexpWithLine),
456457
]),

0 commit comments

Comments
 (0)