Skip to content

Commit

Permalink
fix(dependencies): Update dependencies (#296)
Browse files Browse the repository at this point in the history
* fix(dependencies): Update dependencies

close #295
  • Loading branch information
Retro64 committed Apr 3, 2024
1 parent ef4b695 commit d5daf92
Show file tree
Hide file tree
Showing 4 changed files with 1,056 additions and 781 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ module.exports = {
"format": ["camelCase", "UPPER_CASE"],
leadingUnderscore: 'allow'
},
{
"selector": "import",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "default",
"format": ["camelCase"],
Expand Down
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 d5daf92

Please sign in to comment.