Fix random test

This commit is contained in:
Adria Navarro 2024-01-22 10:40:26 +01:00
parent f783602d9f
commit ac9f8bd498
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
jest.mock("@budibase/handlebars-helpers/lib/math", () => {
const actual = jest.requireActual("@budibase/handlebars-helpers/lib/math")
return {
...actual,
random: () => 10,
}
})
const fs = require("fs") const fs = require("fs")
const { processString } = require("../src/index.cjs") const { processString } = require("../src/index.cjs")