From dbbcd4ad54636a01630d088eb56d08f42ae3912e Mon Sep 17 00:00:00 2001 From: di-fabs Date: Thu, 6 Jun 2024 14:15:28 +0100 Subject: [PATCH] aut-2776 change rateLimit configuration and improve integration tests --- .../tests/contact-us-controller-integration.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/contact-us/tests/contact-us-controller-integration.test.ts b/src/components/contact-us/tests/contact-us-controller-integration.test.ts index c42ad8ced..7baa33aba 100644 --- a/src/components/contact-us/tests/contact-us-controller-integration.test.ts +++ b/src/components/contact-us/tests/contact-us-controller-integration.test.ts @@ -26,7 +26,7 @@ describe("Integration:: contact us - public user", () => { next(); }); - + process.env.API_RATE_LIMIT = "1000"; app = await require("../../../app").createApp(); smartAgentApiUrl = process.env.SMARTAGENT_API_URL; @@ -39,7 +39,7 @@ describe("Integration:: contact us - public user", () => { cookies = res.headers["set-cookie"]; }); - process.env.API_RATE_LIMIT = "1000"; + }); beforeEach(() => {