Skip to content

chore: add a test for 1069 #1076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/logger/test/end-to-end/compatibility-test-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,28 @@ module.exports = [
}
},

// Test cases based on observed differences and bug reports
{
id: 'issue-1069',
description: 'timestamp property is not silently removed',
call: {
method: 'info',
args: ['Timestamp test', { timestamp: 123456 }]
},
expectedOutput: {
nextLogger: {
level: 'info',
message: 'Timestamp test',
timestamp: 123456
},
reliabilityKit: {
level: 'info',
message: 'Timestamp test',
timestamp: 123456
}
}
},

// Test cases based on real-world usage of n-logger
{
id: 'next-article-1',
Expand Down
Loading