From a4f757ee87f01defbcb88f6b01c1ae5d7ab985b0 Mon Sep 17 00:00:00 2001 From: Ajai Shankar Date: Fri, 10 Feb 2023 22:24:28 -0600 Subject: [PATCH] minor: clear expression cache before and after test --- packages/bruno-js/tests/utils.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bruno-js/tests/utils.spec.js b/packages/bruno-js/tests/utils.spec.js index caf5b751..e32ffb1d 100644 --- a/packages/bruno-js/tests/utils.spec.js +++ b/packages/bruno-js/tests/utils.spec.js @@ -8,6 +8,7 @@ describe("utils", () => { } }; + beforeEach(() => cache.clear()); afterEach(() => cache.clear()); it("should evaluate expression", () => { @@ -65,4 +66,4 @@ describe("utils", () => { expect(cache.get(expr).toString()).toContain("const { hello, res } = context;"); }); }); -}); \ No newline at end of file +});