Skip to content

Commit

Permalink
added tests to check for pinoPretty.isColorSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
synapse committed May 23, 2024
1 parent 2fc3876 commit e5234be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,12 @@ test('basic prettifier tests', (t) => {
log.info('foo')
})

t.test('check support for colors', (t) => {
t.plan(1)
const isColorSupported = pinoPretty.isColorSupported
t.type(isColorSupported, 'boolean')
})

t.end()
})

Expand Down

0 comments on commit e5234be

Please sign in to comment.