optimized events
This commit is contained in:
@@ -18,4 +18,15 @@ describe("API environment", () => {
|
||||
loadEnv({ NODE_ENV: "production", SEA_COMPASS_DEMO_DATA: "true" }).demoData
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("does not treat blank service URLs as configured capabilities", () => {
|
||||
const env = loadEnv({
|
||||
NODE_ENV: "production",
|
||||
DATABASE_URL: " ",
|
||||
REDIS_URL: "\t"
|
||||
});
|
||||
|
||||
expect(env.databaseUrl).toBeUndefined();
|
||||
expect(env.redisUrl).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user