Skip to content

Commit

Permalink
[FIX] tests: remove async function export test
Browse files Browse the repository at this point in the history
We no longer have async functions since at least 3 years
and the `WAIT` function was removed when we removed
async function support.

This commit removes the test. The following commit adapts
other tests using the `wait` function.

Task: 4306250
Part-of: #5155
Signed-off-by: Pierre Rousseau (pro) <[email protected]>
  • Loading branch information
LucasLefevre committed Nov 7, 2024
1 parent c78551c commit ec41486
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 207 deletions.
193 changes: 0 additions & 193 deletions tests/xlsx/__snapshots__/xlsx_export.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26151,199 +26151,6 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
}
`;

exports[`Test XLSX export formulas Multi-Sheet export async functions without cross references across sheets 1`] = `
{
"files": [
{
"content": "<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheets>
<sheet state="visible" name="Sheet1" sheetId="1" r:id="rId1"/>
<sheet state="visible" name="Sheet2" sheetId="2" r:id="rId2"/>
</sheets>
</workbook>",
"contentType": "workbook",
"path": "xl/workbook.xml",
},
{
"content": "<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetViews>
<sheetView showGridLines="1" workbookViewId="0">
</sheetView>
</sheetViews>
<sheetFormatPr defaultRowHeight="17.25" defaultColWidth="13.73"/>
<cols>
<col min="1" max="1" width="13.73" customWidth="1" hidden="0"/>
<col min="2" max="2" width="13.73" customWidth="1" hidden="0"/>
<col min="3" max="3" width="13.73" customWidth="1" hidden="0"/>
<col min="4" max="4" width="13.73" customWidth="1" hidden="0"/>
<col min="5" max="5" width="13.73" customWidth="1" hidden="0"/>
<col min="6" max="6" width="13.73" customWidth="1" hidden="0"/>
<col min="7" max="7" width="13.73" customWidth="1" hidden="0"/>
<col min="8" max="8" width="13.73" customWidth="1" hidden="0"/>
<col min="9" max="9" width="13.73" customWidth="1" hidden="0"/>
<col min="10" max="10" width="13.73" customWidth="1" hidden="0"/>
<col min="11" max="11" width="13.73" customWidth="1" hidden="0"/>
<col min="12" max="12" width="13.73" customWidth="1" hidden="0"/>
<col min="13" max="13" width="13.73" customWidth="1" hidden="0"/>
<col min="14" max="14" width="13.73" customWidth="1" hidden="0"/>
<col min="15" max="15" width="13.73" customWidth="1" hidden="0"/>
<col min="16" max="16" width="13.73" customWidth="1" hidden="0"/>
<col min="17" max="17" width="13.73" customWidth="1" hidden="0"/>
<col min="18" max="18" width="13.73" customWidth="1" hidden="0"/>
<col min="19" max="19" width="13.73" customWidth="1" hidden="0"/>
<col min="20" max="20" width="13.73" customWidth="1" hidden="0"/>
<col min="21" max="21" width="13.73" customWidth="1" hidden="0"/>
<col min="22" max="22" width="13.73" customWidth="1" hidden="0"/>
<col min="23" max="23" width="13.73" customWidth="1" hidden="0"/>
<col min="24" max="24" width="13.73" customWidth="1" hidden="0"/>
<col min="25" max="25" width="13.73" customWidth="1" hidden="0"/>
<col min="26" max="26" width="13.73" customWidth="1" hidden="0"/>
</cols>
<sheetData>
</sheetData>
</worksheet>",
"contentType": "sheet",
"path": "xl/worksheets/sheet0.xml",
},
{
"content": "<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetViews>
<sheetView showGridLines="1" workbookViewId="0">
</sheetView>
</sheetViews>
<sheetFormatPr defaultRowHeight="17.25" defaultColWidth="13.73"/>
<cols>
<col min="1" max="1" width="13.73" customWidth="1" hidden="0"/>
<col min="2" max="2" width="13.73" customWidth="1" hidden="0"/>
<col min="3" max="3" width="13.73" customWidth="1" hidden="0"/>
<col min="4" max="4" width="13.73" customWidth="1" hidden="0"/>
<col min="5" max="5" width="13.73" customWidth="1" hidden="0"/>
<col min="6" max="6" width="13.73" customWidth="1" hidden="0"/>
<col min="7" max="7" width="13.73" customWidth="1" hidden="0"/>
<col min="8" max="8" width="13.73" customWidth="1" hidden="0"/>
<col min="9" max="9" width="13.73" customWidth="1" hidden="0"/>
<col min="10" max="10" width="13.73" customWidth="1" hidden="0"/>
<col min="11" max="11" width="13.73" customWidth="1" hidden="0"/>
<col min="12" max="12" width="13.73" customWidth="1" hidden="0"/>
<col min="13" max="13" width="13.73" customWidth="1" hidden="0"/>
<col min="14" max="14" width="13.73" customWidth="1" hidden="0"/>
<col min="15" max="15" width="13.73" customWidth="1" hidden="0"/>
<col min="16" max="16" width="13.73" customWidth="1" hidden="0"/>
<col min="17" max="17" width="13.73" customWidth="1" hidden="0"/>
<col min="18" max="18" width="13.73" customWidth="1" hidden="0"/>
<col min="19" max="19" width="13.73" customWidth="1" hidden="0"/>
<col min="20" max="20" width="13.73" customWidth="1" hidden="0"/>
<col min="21" max="21" width="13.73" customWidth="1" hidden="0"/>
<col min="22" max="22" width="13.73" customWidth="1" hidden="0"/>
<col min="23" max="23" width="13.73" customWidth="1" hidden="0"/>
<col min="24" max="24" width="13.73" customWidth="1" hidden="0"/>
<col min="25" max="25" width="13.73" customWidth="1" hidden="0"/>
<col min="26" max="26" width="13.73" customWidth="1" hidden="0"/>
</cols>
<sheetData>
<row r="1">
<c r="A1">
<v>
5
</v>
</c>
</row>
</sheetData>
</worksheet>",
"contentType": "sheet",
"path": "xl/worksheets/sheet1.xml",
},
{
"content": "<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<numFmts count="0">
</numFmts>
<fonts count="1">
<font>
<sz val="10"/>
<color rgb="000000"/>
<name val="Arial"/>
</font>
</fonts>
<fills count="2">
<fill>
<patternFill patternType="none"/>
</fill>
<fill>
<patternFill patternType="gray125"/>
</fill>
</fills>
<borders count="1">
<border>
<left>
</left>
<right>
</right>
<top>
</top>
<bottom>
</bottom>
<diagonal>
</diagonal>
</border>
</borders>
<cellXfs count="1">
<xf numFmtId="0" fillId="0" fontId="0" borderId="0"/>
</cellXfs>
<dxfs count="0">
</dxfs>
</styleSheet>",
"contentType": "styles",
"path": "xl/styles.xml",
},
{
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="0" uniqueCount="0">
</sst>",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
},
{
"content": "<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Target="worksheets/sheet0.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"/>
<Relationship Id="rId2" Target="worksheets/sheet1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"/>
<Relationship Id="rId3" Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"/>
<Relationship Id="rId4" Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"/>
</Relationships>",
"contentType": undefined,
"path": "xl/_rels/workbook.xml.rels",
},
{
"content": "<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="avif" ContentType="image/avif"/>
<Default Extension="bmp" ContentType="image/bmp"/>
<Default Extension="gif" ContentType="image/gif"/>
<Default Extension="ico" ContentType="image/vnd.microsoft.icon"/>
<Default Extension="jpeg" ContentType="image/jpeg"/>
<Default Extension="png" ContentType="image/png"/>
<Default Extension="tiff" ContentType="image/tiff"/>
<Default Extension="webp" ContentType="image/webp"/>
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Default Extension="xml" ContentType="application/xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet0.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/>
</Types>",
"contentType": undefined,
"path": "[Content_Types].xml",
},
{
"content": "<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
</Relationships>",
"contentType": undefined,
"path": "_rels/.rels",
},
],
"name": "my_spreadsheet.xlsx",
}
`;

exports[`Test XLSX export formulas Multi-Sheet export functions with cross references across sheets 1`] = `
{
"files": [
Expand Down
14 changes: 0 additions & 14 deletions tests/xlsx/xlsx_export.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,20 +880,6 @@ describe("Test XLSX export", () => {
expect(await exportPrettifiedXlsx(model)).toMatchSnapshot();
});

test("Multi-Sheet export async functions without cross references across sheets", async () => {
const model = new Model({
sheets: [
{ id: "s1" },
{
id: "s2",
name: "Sheet2",
cells: { A1: { content: "5", A2: { content: "=wait(A1)" } } },
},
],
});
expect(await exportPrettifiedXlsx(model)).toMatchSnapshot();
});

test("Multi-Sheet export functions with cross references across sheets", async () => {
const model = new Model({
sheets: [
Expand Down

0 comments on commit ec41486

Please sign in to comment.