Skip to content

Commit 4e87275

Browse files
authored
test(utils/jwt): add missing algorithm types in jwa.test.ts (#4606) (#4607)
1 parent 7997740 commit 4e87275

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/utils/jwt/jwa.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ describe('Types', () => {
88
expect('RS256' as AlgorithmTypes).toBe(AlgorithmTypes.RS256)
99
expect('RS384' as AlgorithmTypes).toBe(AlgorithmTypes.RS384)
1010
expect('RS512' as AlgorithmTypes).toBe(AlgorithmTypes.RS512)
11+
expect('PS256' as AlgorithmTypes).toBe(AlgorithmTypes.PS256)
12+
expect('PS384' as AlgorithmTypes).toBe(AlgorithmTypes.PS384)
13+
expect('PS512' as AlgorithmTypes).toBe(AlgorithmTypes.PS512)
14+
expect('ES256' as AlgorithmTypes).toBe(AlgorithmTypes.ES256)
15+
expect('ES384' as AlgorithmTypes).toBe(AlgorithmTypes.ES384)
16+
expect('ES512' as AlgorithmTypes).toBe(AlgorithmTypes.ES512)
17+
expect('EdDSA' as AlgorithmTypes).toBe(AlgorithmTypes.EdDSA)
1118

1219
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1320
// @ts-ignore

0 commit comments

Comments
 (0)