Skip to content

Commit 514af8b

Browse files
update
1 parent d062290 commit 514af8b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed
5.92 KB
Binary file not shown.
6.15 KB
Binary file not shown.

spec/integration/pr/test-pr-1262.spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
const ExcelJS = verquire('exceljs');
22

3+
const TEST_1262_XLSX_FILE_NAME = './spec/integration/data/test-pr-1262.xlsx';
4+
35
describe('github issues', () => {
46
it('pull request 1262 - protect should work with streaming workbook writer', async () => {
57
const workbook = new ExcelJS.stream.xlsx.WorkbookWriter({
6-
filename: './test.xlsx',
8+
filename: TEST_1262_XLSX_FILE_NAME,
79
});
810

911
const sheet = workbook.addWorksheet('data');
@@ -22,7 +24,7 @@ describe('github issues', () => {
2224

2325
// read in file and ensure sheetProtection is there:
2426
const checkBook = new ExcelJS.Workbook();
25-
await checkBook.xlsx.readFile('./test.xlsx');
27+
await checkBook.xlsx.readFile(TEST_1262_XLSX_FILE_NAME);
2628

2729
const checkSheet = checkBook.getWorksheet('data');
2830
expect(checkSheet.sheetProtection.spinCount).to.equal(1);

spec/integration/pr/test-pr-1431.spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const ExcelJS = verquire('exceljs');
22

3+
const TEST_1431_XLSX_FILE_NAME = './spec/integration/data/test-pr-1431.xlsx';
4+
35
describe('github issues', () => {
46
it('pull request 1431 - streaming reader should handle rich text within shared strings', async () => {
57
const rowData = [
@@ -13,7 +15,7 @@ describe('github issues', () => {
1315
];
1416

1517
const workbook = new ExcelJS.stream.xlsx.WorkbookWriter({
16-
filename: './test.xlsx',
18+
filename: TEST_1431_XLSX_FILE_NAME,
1719
useSharedStrings: true,
1820
});
1921

@@ -25,7 +27,7 @@ describe('github issues', () => {
2527

2628
return new Promise((resolve, reject) => {
2729
const workbookReader = new ExcelJS.stream.xlsx.WorkbookReader(
28-
'./test.xlsx',
30+
TEST_1431_XLSX_FILE_NAME,
2931
{
3032
entries: 'emit',
3133
hyperlinks: 'cache',

0 commit comments

Comments
 (0)