summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-11-12 19:51:29 -0800
committerMatthew Miller <matthew@millerti.me>2022-11-12 19:51:29 -0800
commit6e3db9655c6aa2aef590c66295df500271bfdd17 (patch)
tree03ac98e1da17f97c4f7da151868a16ca445e0ec2 /packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts
parent6a4ced11ee7d1e872af4215f9aba82c7b64119c2 (diff)
Figure out a better pattern for exposing iso funcs
Diffstat (limited to 'packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts')
-rw-r--r--packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts b/packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts
index 560a5c4..8afa3d7 100644
--- a/packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts
+++ b/packages/server/src/helpers/decodeAuthenticatorExtensions.test.ts
@@ -1,9 +1,9 @@
import { decodeAuthenticatorExtensions } from './decodeAuthenticatorExtensions';
-import * as uint8Array from './uint8Array';
+import { isoUint8Array } from './iso';
test('should decode authenticator extensions', () => {
const extensions = decodeAuthenticatorExtensions(
- uint8Array.fromHex(
+ isoUint8Array.fromHex(
'A16C6465766963655075624B6579A56364706B584DA5010203262001215820991AABED9D' +
'E4271A9EDEAD8806F9DC96D6DCCD0C476253A5510489EC8379BE5B225820A0973CFDEDBB' +
'79E27FEF4EE7481673FB3312504DDCA5434CFD23431D6AD29EDA63736967584730450221' +
@@ -14,15 +14,15 @@ test('should decode authenticator extensions', () => {
);
expect(extensions).toMatchObject({
devicePubKey: {
- dpk: uint8Array.fromHex(
+ dpk: isoUint8Array.fromHex(
'A5010203262001215820991AABED9DE4271A9EDEAD8806F9DC96D6DCCD0C476253A5510489EC8379BE5B225820A0973CFDEDBB79E27FEF4EE7481673FB3312504DDCA5434CFD23431D6AD29EDA',
),
- sig: uint8Array.fromHex(
+ sig: isoUint8Array.fromHex(
'3045022100EFB38074BD15B8C82CF09F87FBC6FB3C7169EA4F1806B7E90937374302345B7A02202B7113040731A0E727D338D48542863CE65880AA79E5EA740AC8CCD94347988E',
),
- nonce: uint8Array.fromHex(''),
- scope: uint8Array.fromHex('00'),
- aaguid: uint8Array.fromHex('00000000000000000000000000000000'),
+ nonce: isoUint8Array.fromHex(''),
+ scope: isoUint8Array.fromHex('00'),
+ aaguid: isoUint8Array.fromHex('00000000000000000000000000000000'),
},
});
});