Disable static formula tests in external DBs.
This commit is contained in:
parent
3971b0e42e
commit
4076e98308
|
@ -3585,16 +3585,17 @@ describe.each([
|
||||||
expect(rows[0].formula).toBe(2)
|
expect(rows[0].formula).toBe(2)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should coerce a static handlebars formula", async () => {
|
isInternal &&
|
||||||
await updateFormulaColumn(encodeJS("return 1"), {
|
it("should coerce a static handlebars formula", async () => {
|
||||||
responseType: FieldType.NUMBER,
|
await updateFormulaColumn(encodeJS("return 1"), {
|
||||||
formulaType: FormulaType.STATIC,
|
responseType: FieldType.NUMBER,
|
||||||
|
formulaType: FormulaType.STATIC,
|
||||||
|
})
|
||||||
|
// save the row to store the static value
|
||||||
|
await config.api.row.save(table._id!, mainRow)
|
||||||
|
const { rows } = await config.api.row.search(table._id!)
|
||||||
|
expect(rows[0].formula).toBe(1)
|
||||||
})
|
})
|
||||||
// save the row to store the static value
|
|
||||||
await config.api.row.save(table._id!, mainRow)
|
|
||||||
const { rows } = await config.api.row.search(table._id!)
|
|
||||||
expect(rows[0].formula).toBe(1)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("Formula JS protection", () => {
|
describe("Formula JS protection", () => {
|
||||||
|
|
Loading…
Reference in New Issue