minor: clear expression cache before and after test

This commit is contained in:
Ajai Shankar 2023-02-10 22:24:28 -06:00
parent df4f322024
commit a4f757ee87

View File

@ -8,6 +8,7 @@ describe("utils", () => {
} }
}; };
beforeEach(() => cache.clear());
afterEach(() => cache.clear()); afterEach(() => cache.clear());
it("should evaluate expression", () => { it("should evaluate expression", () => {
@ -65,4 +66,4 @@ describe("utils", () => {
expect(cache.get(expr).toString()).toContain("const { hello, res } = context;"); expect(cache.get(expr).toString()).toContain("const { hello, res } = context;");
}); });
}); });
}); });