Removing pointless test case.

This commit is contained in:
mike12345567 2024-07-05 15:04:01 +01:00
parent e41f5c6d92
commit c34e6c02e3
1 changed files with 1 additions and 9 deletions

View File

@ -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