Skip to content

Commit

Permalink
test: make pino version test more robust
Browse files Browse the repository at this point in the history
We don't want to have to update tests on every new Pino version.
  • Loading branch information
targos committed Feb 8, 2024
1 parent 73b4bed commit cc024e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/logger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ test.group('Logger', () => {
assert.deepEqual(logger.bindings(), {})
assert.isFalse(logger.isLevelEnabled('info'))

assert.snapshot(logger.pinoVersion).matchInline('"8.17.2"')
assert.snapshot(logger.version).matchInline('"8.17.2"')
assert.match(logger.pinoVersion, /\d+\.\d+\.\d+/)
assert.strictEqual(logger.pinoVersion, logger.version)

assert.deepEqual(logger.levels, {
labels: {
Expand Down

0 comments on commit cc024e7

Please sign in to comment.