Skip to content

Commit 644a13b

Browse files
committed
style: prettier
1 parent ec6a6a5 commit 644a13b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/jwt/verify.test.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,15 @@ test('Signed JWTs cannot use unencoded payload', async (t) => {
383383

384384
test('signatures are compared before claim set', async (t) => {
385385
// https://github.com/panva/jose/discussions/447
386-
const jwt = await new SignJWT({ exp: 0 }).setProtectedHeader({ alg: 'HS256' }).sign(t.context.secret);
386+
const jwt = await new SignJWT({ exp: 0 })
387+
.setProtectedHeader({ alg: 'HS256' })
388+
.sign(t.context.secret)
387389

388390
// with valid secret should throw exp failing to verify
389391
await t.throwsAsync(jwtVerify(jwt, t.context.secret), { code: 'ERR_JWT_EXPIRED' })
390392

391393
// with invalid secret should throw signature failing to verify
392-
await t.throwsAsync(jwtVerify(jwt, new Uint8Array([0x00, 0x01])), { code: 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED' })
394+
await t.throwsAsync(jwtVerify(jwt, new Uint8Array([0x00, 0x01])), {
395+
code: 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED',
396+
})
393397
})

0 commit comments

Comments
 (0)