Skip to content

Commit af348d0

Browse files
committed
follow nit
1 parent 5e0e7c2 commit af348d0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/Adapters/Auth/line.spec.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,14 @@ describe('LineAdapter', function () {
169169
);
170170
});
171171

172-
it('should reject an unsupported signing algorithm', async function () {
173-
spyOn(authUtils, 'getHeaderFromToken').and.returnValue({ alg: 'RS256' });
172+
it('should reject unsupported id_token signing algorithms', async function () {
173+
spyOn(authUtils, 'getHeaderFromToken').and.returnValue({ kid: '123', alg: 'none' });
174+
spyOn(jwt, 'verify');
174175

175176
await expectAsync(adapter.verifyIdToken({ id_token: 'the_token' })).toBeRejectedWithError(
176-
'Unsupported Line id_token signing algorithm: RS256'
177+
'Unsupported Line id_token signing algorithm: none'
177178
);
179+
expect(jwt.verify).not.toHaveBeenCalled();
178180
});
179181
});
180182

0 commit comments

Comments
 (0)