diff --git a/tests/xlsx/__snapshots__/xlsx_export.test.ts.snap b/tests/xlsx/__snapshots__/xlsx_export.test.ts.snap
index 89c9dbf872..5e2cb71b03 100644
--- a/tests/xlsx/__snapshots__/xlsx_export.test.ts.snap
+++ b/tests/xlsx/__snapshots__/xlsx_export.test.ts.snap
@@ -29024,10 +29024,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
-
-
- 0
-
+
@@ -29038,9 +29035,12 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
-
+
+
+ SUM(A1,ABS(100))
+
- 1
+ 100
@@ -29221,12 +29221,12 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
-
+
SUM(A3:Z3)
- #NAME?
+ 100
@@ -29236,7 +29236,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
SUM(A3:A100)
- #NAME?
+ #CYCLE
@@ -29601,17 +29601,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
"path": "xl/styles.xml",
},
{
- "content": "
-
-
- =WAIT(100)
-
-
-
-
- =sum(A1,wait(100))
-
-
+ "content": "
",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
@@ -29716,6 +29706,13 @@ exports[`Test XLSX export formulas Multi-Sheet export functions with cross refer
+
+
+
+ 2
+
+
+
",
"contentType": "sheet",
@@ -29764,6 +29761,16 @@ exports[`Test XLSX export formulas Multi-Sheet export functions with cross refer
+
+
+
+ SUM(Sheet1!A2)
+
+
+ 2
+
+
+
",
"contentType": "sheet",
@@ -31964,9 +31971,12 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
-
+
+
+ ABS(10)
+
- 20
+ 10
@@ -32018,7 +32028,7 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
"path": "xl/styles.xml",
},
{
- "content": "
+ "content": "
evaluation
@@ -32119,11 +32129,6 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
>25
-
-
- =wait(10)
-
-
",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
diff --git a/tests/xlsx/xlsx_export.test.ts b/tests/xlsx/xlsx_export.test.ts
index 8d335a7574..00cb600df3 100644
--- a/tests/xlsx/xlsx_export.test.ts
+++ b/tests/xlsx/xlsx_export.test.ts
@@ -388,9 +388,8 @@ const allNonExportableFormulasData = {
sheets: [
{
cells: {
- A1: { content: "=WAIT(100)" },
A2: { content: "=COUNTUNIQUE(1,A24,3,2,4)" },
- A3: { content: "=sum(A1,wait(100))" },
+ A3: { content: "=sum(A1,ABS(100))" },
A4: { content: "=ADD(42,24)" },
A5: { content: "=DIVIDE(84,42)" },
A6: { content: "=EQ(42,42)" },
@@ -895,7 +894,7 @@ describe("Test XLSX export", () => {
test("Multi-Sheets exportable functions", async () => {
const model = new Model({
- sheets: [allExportableFormulasData.sheets[0], { cells: { A1: { content: "=wait(10)" } } }],
+ sheets: [allExportableFormulasData.sheets[0], { cells: { A1: { content: "=abs(10)" } } }],
});
expect(await exportPrettifiedXlsx(model)).toMatchSnapshot();
});
@@ -906,12 +905,12 @@ describe("Test XLSX export", () => {
{
id: "s1",
name: "Sheet1",
- cells: { A1: { content: "=sum(Sheet2!A1)", A2: { content: "2" } } },
+ cells: { A1: { content: "=sum(Sheet2!A1)" }, A2: { content: "2" } },
},
{
id: "s2",
name: "Sheet2",
- cells: { A1: { content: "5", A2: { content: "=wait(Sheet1!A2)" } } },
+ cells: { A1: { content: "5" }, A2: { content: "=sum(Sheet1!A2)" } },
},
],
});