From 6e389db9be654912ea8a2080ff08b877f8266e57 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolski Date: Wed, 2 Nov 2022 14:18:27 +0100 Subject: [PATCH] Remove variables from the env if are already existing (#103) --- src/APL/upstash-apl.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/APL/upstash-apl.test.ts b/src/APL/upstash-apl.test.ts index 398364d..c48969d 100644 --- a/src/APL/upstash-apl.test.ts +++ b/src/APL/upstash-apl.test.ts @@ -122,6 +122,10 @@ describe("APL", () => { describe("isReady", () => { it("Returns error with message mentioning missing configuration variables", async () => { + // Delete upstash variables if are already present in the env + delete process.env[UpstashAPLVariables.UPSTASH_TOKEN]; + delete process.env[UpstashAPLVariables.UPSTASH_URL]; + const apl = new UpstashAPL(); const result = await apl.isReady();