diff --git a/src/test/Journal.test.ts b/src/test/Journal.test.ts index 5b69131..2697397 100644 --- a/src/test/Journal.test.ts +++ b/src/test/Journal.test.ts @@ -250,8 +250,8 @@ describe("Journal", () => { expect(event).toBeDefined(); } })(); - await expect(promise).rejects.toThrow("Parse error in Journal.2023-01-01T000000.01.log:2: " - + "Expected double-quoted property name in JSON at position 38: { \"timestamp\":\"2023-01-01T00:00:01Z\", ]"); + await expect(promise).rejects.toThrow( + /Parse error in Journal\.2023-01-01T000000\.01\.log:2: .* at position 38: \{ "timestamp":"2023-01-01T00:00:01Z", ]/); } finally { await journal.close(); }