1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00

Removing pointless test case.

This commit is contained in:
mike12345567 2024-07-05 15:04:01 +01:00
parent e41f5c6d92
commit c34e6c02e3

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