From e7213f553824637a34f74c365087c1778393b0d2 Mon Sep 17 00:00:00 2001 From: adamjmcgrath Date: Fri, 18 Dec 2020 15:47:44 +0000 Subject: [PATCH] fix tests --- tests/config.test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/config.test.ts b/tests/config.test.ts index 85ff95bf4..18d526832 100644 --- a/tests/config.test.ts +++ b/tests/config.test.ts @@ -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) {