( actual: readonly string[], expected: readonly string[], message: string, )
| 43 | } |
| 44 | |
| 45 | function assertArrayEqual( |
| 46 | actual: readonly string[], |
| 47 | expected: readonly string[], |
| 48 | message: string, |
| 49 | ): void { |
| 50 | const actualJson = JSON.stringify(actual); |
| 51 | const expectedJson = JSON.stringify(expected); |
| 52 | if (actualJson !== expectedJson) { |
| 53 | throw new Error(`${message}: expected ${expectedJson}, got ${actualJson}`); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | function makeJwt(expiresAtSeconds: number): string { |
| 58 | const header = btoa(JSON.stringify({ alg: "HS256", typ: "JWT" })); |
no outgoing calls
no test coverage detected