Skip to content

Commit ca58fc2

Browse files
committed
chore: add a test for 1069
1 parent 59dcc75 commit ca58fc2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

packages/logger/test/end-to-end/compatibility-test-cases.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,28 @@ module.exports = [
705705
}
706706
},
707707

708+
// Test cases based on observed differences and bug reports
709+
{
710+
id: 'issue-1069',
711+
description: 'timestamp property is not silently removed',
712+
call: {
713+
method: 'info',
714+
args: ['Timestamp test', { timestamp: 123456 }]
715+
},
716+
expectedOutput: {
717+
nextLogger: {
718+
level: 'info',
719+
message: 'Timestamp test',
720+
timestamp: 123456
721+
},
722+
reliabilityKit: {
723+
level: 'info',
724+
message: 'Timestamp test',
725+
timestamp: 123456
726+
}
727+
}
728+
},
729+
708730
// Test cases based on real-world usage of n-logger
709731
{
710732
id: 'next-article-1',

0 commit comments

Comments
 (0)