Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel committed Jun 23, 2022
1 parent 91d1827 commit 740af28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ t.test('miscellaneous headers', t => {
t.strictSame(ua, ['agent of use'], 'UA set from options'))
.matchHeader('npm-command', cmd =>
t.strictSame(cmd, ['hello-world'], 'command set from options'))
.matchHeader('npm-use-webauthn', useWebauthn =>
t.strictSame(useWebauthn, ['true'], 'use-webauthn set from options'))
.get('/hello')
.reply(200, { hello: 'world' })

Expand All @@ -483,6 +485,7 @@ t.test('miscellaneous headers', t => {
scope: '@foo',
userAgent: 'agent of use',
npmCommand: 'hello-world',
authType: 'webauthn',
}).then(res => {
t.equal(res.status, 200, 'got successful response')
})
Expand Down

0 comments on commit 740af28

Please sign in to comment.