Skip to content

Commit

Permalink
test: fixed test for json log optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stacy committed Sep 10, 2024
1 parent 1a8b632 commit e44a6b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/formatters/json/log.terminators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,15 @@ export const printsOptionalFields = async () => {
expect(log).toEqual({
v: 1,
level: 0,
levelName: 'alert',
name: 'test-app',
hostname: 'localhost',
msg: 'This is an alert log.',
args: [],
pid: 1,
time: '2024-07-31T13:19:25-04:00',
levelName: 'alert',
meta: {
levelName: 'alert',
meta: {
hello: 'world',
},
Expand All @@ -490,9 +491,9 @@ export const printsOptionalFields = async () => {
},
method: 'POST',
url: 'https://120.0.0.1:51244/path?q=1#anchor',
body: {
body: JSON.stringify({
foo: 'bar',
},
}),
remoteAddress: '120.0.0.1',
remotePort: 51244,
},
Expand Down

0 comments on commit e44a6b9

Please sign in to comment.