Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -0,0 +1,15 @@
import { describe, expect, it } from "vitest";
import { neutralizeSpreadsheetFormula } from "./spreadsheet-safety.js";
describe("neutralizeSpreadsheetFormula", () => {
it.each(["=1+1", "+cmd", "-2+3", "@SUM(A1:A2)", " =1+1", "\tformula", "\rformula", "\nformula"])(
"neutralizes unsafe spreadsheet cell %j",
(value) => {
expect(neutralizeSpreadsheetFormula(value)).toBe(`'${value}`);
},
);
it.each(["", "plain text", " plain text", "1+1", "mailto:user@example.test"])("keeps safe cell %j unchanged", (value) => {
expect(neutralizeSpreadsheetFormula(value)).toBe(value);
});
});