Skip to content

Commit a3e7e22

Browse files
committed
chore: add more tests
1 parent 12f6fa1 commit a3e7e22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/excel-builder-vanilla/src/__tests__/excel-builder.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,5 +1087,12 @@ describe('Excel-Builder-Vanilla', () => {
10871087

10881088
expect(file).toBeTruthy();
10891089
expect(dwgs[0].drawings.length).toBe(3);
1090+
1091+
// print titles offset of 2 => left B and top 2
1092+
fruitWorkbook.setPrintTitleLeft('sheet1', 2);
1093+
fruitWorkbook.setPrintTitleTop('sheet1', 2);
1094+
1095+
const titles = fruitWorkbook.printTitles;
1096+
expect(titles).toEqual({ sheet1: { left: 'B', top: 2 } });
10901097
});
10911098
});

0 commit comments

Comments
 (0)