Remove variables from the env if are already existing (#103)
This commit is contained in:
parent
918956bdd6
commit
6e389db9be
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue