Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Dec 18, 2020
1 parent b9331b1 commit e7213f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ import { ConfigParameters } from '../src/auth0-session';

const getParamsWithEnv = (env: any = {}, opts?: any): ConfigParameters => {
const bkp = process.env;
process.env = { ...process.env, ...env };
process.env = {
...process.env,
...{
AUTH0_SECRET: undefined,
AUTH0_ISSUER_BASE_URL: undefined,
AUTH0_BASE_URL: undefined,
AUTH0_CLIENT_ID: undefined,
AUTH0_CLIENT_SECRET: undefined
},
...env
};
try {
return getParams(opts);
} catch (e) {
Expand Down

0 comments on commit e7213f5

Please sign in to comment.