Skip to content

Commit

Permalink
Update unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Oct 1, 2021
1 parent bc4e7f6 commit 81352e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/core/server/logging/layouts/json_layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test('`format()` correctly formats record with meta-data', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
log: {
level: 'DEBUG',
Expand Down Expand Up @@ -136,7 +136,7 @@ test('`format()` correctly formats error record with meta-data', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
log: {
level: 'DEBUG',
Expand Down Expand Up @@ -176,7 +176,7 @@ test('format() meta can merge override logs', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
message: 'foo',
log: {
Expand Down Expand Up @@ -206,7 +206,7 @@ test('format() meta can not override message', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
message: 'foo',
log: {
Expand Down Expand Up @@ -235,7 +235,7 @@ test('format() meta can not override ecs version', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
message: 'foo',
log: {
Expand Down Expand Up @@ -267,7 +267,7 @@ test('format() meta can not override logger or level', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
message: 'foo',
log: {
Expand Down Expand Up @@ -296,7 +296,7 @@ test('format() meta can not override timestamp', () => {
})
)
).toStrictEqual({
ecs: { version: '1.9.0' },
ecs: { version: '1.12.0' },
'@timestamp': '2012-02-01T09:30:22.011-05:00',
message: 'foo',
log: {
Expand Down

0 comments on commit 81352e3

Please sign in to comment.