Skip to content

Commit

Permalink
fix(dependencies): Update dependencies
Browse files Browse the repository at this point in the history
close #295
  • Loading branch information
Retro64 committed Apr 2, 2024
1 parent ef4b695 commit a2685c8
Show file tree
Hide file tree
Showing 3 changed files with 1,052 additions and 781 deletions.
18 changes: 9 additions & 9 deletions integration-test/oauth-tooling/getTokenInfo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ describe('getTokenInfo', () => {

// given
nock(oAuthServerHost)
.get(tokenInfoEndpoint)
.query({ access_token: invalidAccessToken })
.reply(HttpStatus.UNAUTHORIZED, { error: 'invalid_token' });
.get(tokenInfoEndpoint)
.query({ access_token: invalidAccessToken })
.reply(HttpStatus.UNAUTHORIZED, { error: 'invalid_token' });

// when
const promise = getTokenInfo(`${oAuthServerHost}${tokenInfoEndpoint}`, invalidAccessToken);
Expand All @@ -53,17 +53,17 @@ describe('getTokenInfo', () => {
error: {
errorDescription: 'tokenInfo endpoint not reachable '
}
});
});
});
});
}).timeout(5000);

it('should return the token info if token is valid', function() {
it('should return the token info if token is valid', function () {

// given
nock(oAuthServerHost)
.get(tokenInfoEndpoint)
.query({ access_token: validAccessToken })
.reply(HttpStatus.OK, { access_token: validAccessToken });
.get(tokenInfoEndpoint)
.query({ access_token: validAccessToken })
.reply(HttpStatus.OK, { access_token: validAccessToken });

// when
const promise = getTokenInfo(`${oAuthServerHost}${tokenInfoEndpoint}`, validAccessToken);
Expand Down
Loading

0 comments on commit a2685c8

Please sign in to comment.