Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-1507] Dependency upgrade #405

Merged
merged 11 commits into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: cypress/browsers:chrome67
- image: cypress/browsers:node12.13.0-chrome80-ff74
working_directory: ~/repo
steps:
- checkout
Expand Down
16 changes: 10 additions & 6 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ describe('Auth0', () => {
it('opens popup with correct popup, url and custom config', async () => {
const { auth0, utils } = await setup();
await auth0.loginWithPopup({}, { timeoutInSeconds: 1 });
expect(utils.runPopup).toHaveBeenCalledWith(
expect(
utils.runPopup
).toHaveBeenCalledWith(
`https://test.auth0.com/authorize?${TEST_QUERY_PARAMS}${TEST_TELEMETRY_QUERY_STRING}`,
{ timeoutInSeconds: 1 }
);
Expand All @@ -369,7 +371,9 @@ describe('Auth0', () => {
}
);

expect(utils.runPopup).toHaveBeenCalledWith(
expect(
utils.runPopup
).toHaveBeenCalledWith(
`https://test.auth0.com/authorize?${TEST_QUERY_PARAMS}${TEST_TELEMETRY_QUERY_STRING}`,
{ timeoutInSeconds: 25 }
);
Expand Down Expand Up @@ -811,7 +815,7 @@ describe('Auth0', () => {
);
});

describe('when there is a valid query string in the url', async () => {
describe('when there is a valid query string in the url', () => {
const localSetup = async () => {
window.history.pushState(
{},
Expand Down Expand Up @@ -1041,7 +1045,7 @@ describe('Auth0', () => {
});
});
});
describe('when there is a valid query string in a hash', async () => {
describe('when there is a valid query string in a hash', () => {
const localSetup = async () => {
window.history.pushState({}, 'Test', `/`);
window.history.pushState(
Expand Down Expand Up @@ -1419,7 +1423,7 @@ describe('Auth0', () => {
});

describe('getTokenSilently()', () => {
describe('when `options.ignoreCache` is false', async () => {
describe('when `options.ignoreCache` is false', () => {
describe('when refresh tokens are not used', () => {
it('calls `cache.get` with the correct options', async () => {
const { auth0, cache, utils } = await setup();
Expand Down Expand Up @@ -1842,7 +1846,7 @@ describe('Auth0', () => {
});
});

describe('getTokenWithPopup()', async () => {
describe('getTokenWithPopup()', () => {
const localSetup = async () => {
const result = await setup();
result.auth0.loginWithPopup = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion __tests__/jwt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const verifier = new IDTokenVerifier({
});
verifier.getRsaVerifier = (_, __, cb) => cb(null, { verify: () => true });

describe('jwt', async () => {
describe('jwt', () => {
it('decodes correctly', () => {
const id_token =
'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp0cnVlLCJpYXQiOjE1NTEzNjIzOTAsImV4cCI6MTU1MTM2NTk5MCwiYXVkIjoiazV1M28yZmlBQThYd2VYRUVYNjA0S0N3Q2p6anRNVTYiLCJpc3MiOiJodHRwczovL2JydWNrZS5hdXRoMC5jb20vIn0.MeU2xC4qwr6JvYeDjCRbzT78mvugpVcSlkoGqRsA-ig-JUHuKMsBO1mNgsilRaxulf_zEl-XktKpq9IisamKSRe1UeboESXsZ02nbZqP5i0X4pdYnTI9Z51Iuet2GAJqPDTMpyj-BA0yiROd1X3Ot91_Fh1ZU7EyZmYdoyJrx_Cue1ituMMIWBk1JOs6rMKy1xVCFoDk20upQzf5Xuy2oGtaRhrQzz5sdRR9Y5yxEN5kzcHrGVaZ_fLMYkUDF_aKv4PTFU-I-0HpP_-4PtcjTUJpeXDK_7BzpA6fAdnqaRTl6iYgNKl7R19_8QfQpoTkeJBmZ7HxW_13s03G5jNLSg';
Expand Down
Loading