Removing pointless test case.
This commit is contained in:
parent
e41f5c6d92
commit
c34e6c02e3
|
@ -50,7 +50,7 @@ describe("jsRunner (using isolated-vm)", () => {
|
||||||
describe("helpers", () => {
|
describe("helpers", () => {
|
||||||
runJsHelpersTests({
|
runJsHelpersTests({
|
||||||
funcWrap: (func: any) => config.doInContext(config.getAppId(), func),
|
funcWrap: (func: any) => config.doInContext(config.getAppId(), func),
|
||||||
testsToSkip: ["random", "uuid", "lorem"],
|
testsToSkip: ["random", "uuid"],
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("uuid", () => {
|
describe("uuid", () => {
|
||||||
|
@ -71,14 +71,6 @@ describe("jsRunner (using isolated-vm)", () => {
|
||||||
expect(result).toBeLessThanOrEqual(max)
|
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
|
// the test cases here were extracted from templates/real world examples of JS in Budibase
|
||||||
|
|
Loading…
Reference in New Issue