diff --git a/test/index.js b/test/index.js index d7f86cde..049bc8d3 100644 --- a/test/index.js +++ b/test/index.js @@ -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' }) @@ -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') })