Skip to content

Commit 61f7dd3

Browse files
committed
Fix checkExpectedLogMessages not asserting anything on success
1 parent 64300e4 commit 61f7dd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/testing-utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ export function checkExpectedLogMessages(
271271
t.fail(
272272
`Expected\n\n${listify(missingMessages)}\n\nin the logger output, but didn't find it in:\n\n${messages.map((m) => ` - '${m.message}'`).join("\n")}`,
273273
);
274+
} else {
275+
t.pass();
274276
}
275277
}
276278

0 commit comments

Comments
 (0)