From c34e6c02e3990726b34e8266fd7a02f9a73f413d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 5 Jul 2024 15:04:01 +0100 Subject: [PATCH] Removing pointless test case. --- packages/server/src/jsRunner/tests/jsRunner.spec.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/server/src/jsRunner/tests/jsRunner.spec.ts b/packages/server/src/jsRunner/tests/jsRunner.spec.ts index fcd58fd0f1..9d2bd7104d 100644 --- a/packages/server/src/jsRunner/tests/jsRunner.spec.ts +++ b/packages/server/src/jsRunner/tests/jsRunner.spec.ts @@ -50,7 +50,7 @@ describe("jsRunner (using isolated-vm)", () => { describe("helpers", () => { runJsHelpersTests({ funcWrap: (func: any) => config.doInContext(config.getAppId(), func), - testsToSkip: ["random", "uuid", "lorem"], + testsToSkip: ["random", "uuid"], }) describe("uuid", () => { @@ -71,14 +71,6 @@ describe("jsRunner (using isolated-vm)", () => { expect(result).toBeLessThanOrEqual(max) }) }) - - describe("lorem", () => { - it("should be able to generate lorem", async () => { - const result = await processJS(`return helpers.lorem(10)`) - expect(result).toBeDefined() - expect(result).toBe("Lorem ipsu") - }) - }) }) // the test cases here were extracted from templates/real world examples of JS in Budibase