Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Sep 3, 2021
1 parent b350e21 commit aea008d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/transport.js
Expand Up @@ -64,7 +64,7 @@ function transport (fullOptions) {
let target = fullOptions.target

if (target && targets) {
throw new Error('Only one of target or targets can be specified')
throw new Error('only one of target or targets can be specified')
}

if (targets) {
Expand Down
2 changes: 1 addition & 1 deletion test/transport.test.js
Expand Up @@ -286,7 +286,7 @@ test('pino.transport with target and targets', async ({ fail, equal }) => {
})
fail('must throw')
} catch (err) {
equal(err.message, 'Only one of target or targets can be specified')
equal(err.message, 'only one of target or targets can be specified')
}
})

Expand Down

0 comments on commit aea008d

Please sign in to comment.