Skip to content

Commit 74a8ba2

Browse files
committed
minimal test change according to audit
1 parent a4fc483 commit 74a8ba2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spec/Adapters/Auth/line.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ describe('LineAdapter', function () {
7777

7878
it('should throw an error if public key used to encode token is not available', async function () {
7979
spyOn(authUtils, 'getHeaderFromToken').and.returnValue({ kid: '789', alg: 'ES256' });
80+
spyOn(authUtils, 'getSigningKey').and.returnValue(Promise.reject(new Error('missing key')));
8081

8182
await expectAsync(adapter.verifyIdToken({ id_token: 'the_token' })).toBeRejectedWithError(
8283
'Unable to find matching key for Key ID: 789'

0 commit comments

Comments
 (0)