Skip to content

Commit d062290

Browse files
update
1 parent 523c9b9 commit d062290

40 files changed

+24
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ _SpecRunner.html
6565
.DS_Store
6666

6767
# Ignore xlsx files generated during testing
68-
*.xlsx
68+
# *.xlsx
6969
enpm-lock.yaml

spec/integration/data/123456.xlsx

17 KB
Binary file not shown.
Binary file not shown.

spec/integration/data/1904.xlsx

9.3 KB
Binary file not shown.
8.44 KB
Binary file not shown.
14 KB
Binary file not shown.

spec/integration/data/dateIssue.xlsx

4.64 KB
Binary file not shown.
8.01 KB
Binary file not shown.

spec/integration/data/fibonacci.xlsx

8.53 KB
Binary file not shown.

spec/integration/data/formulas.xlsx

9.35 KB
Binary file not shown.

spec/integration/data/gold.xlsx

8.94 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

spec/integration/data/huge.xlsx

14 MB
Binary file not shown.

spec/integration/data/images.xlsx

23.2 KB
Binary file not shown.
7.68 KB
Binary file not shown.
8.68 KB
Binary file not shown.
1.19 KB
Binary file not shown.
Binary file not shown.
8.77 KB
Binary file not shown.
4.66 KB
Binary file not shown.
3.47 KB
Binary file not shown.
11.1 KB
Binary file not shown.
4.95 KB
Binary file not shown.
21 KB
Binary file not shown.
8.35 KB
Binary file not shown.
4.18 KB
Binary file not shown.
145 KB
Binary file not shown.
261 KB
Binary file not shown.
9.06 KB
Binary file not shown.
10.5 KB
Binary file not shown.
37.7 KB
Binary file not shown.

spec/integration/data/test-pr-2244.xlsx

Whitespace-only changes.
6.22 KB
Binary file not shown.
9.65 KB
Binary file not shown.
9.06 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const ExcelJS = verquire('exceljs');
2+
3+
const TEST_567_XLSX_FILE_NAME = './spec/integration/data/123456.xlsx';
4+
5+
describe('pr related issues', () => {
6+
describe('pr 5676 whole column defined names', () => {
7+
it('Should be able to read this file', async () => {
8+
try {
9+
const workbook = new ExcelJS.Workbook();
10+
await workbook.xlsx.readFile(TEST_567_XLSX_FILE_NAME, {
11+
password: '123456',
12+
});
13+
// console.log('123-->', workbook);
14+
} catch (error) {
15+
// throw error;
16+
// console.log('error0-->', error);
17+
}
18+
});
19+
});
20+
});

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

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

3+
const TEST_2244_XLSX_FILE_NAME = './spec/integration/data/test-pr-2244.xlsx';
4+
35
describe('pull request 2244', () => {
46
it('pull request 2244- Fix xlsx.writeFile() not catching error when error occurs', async () => {
57
async function test() {
@@ -10,7 +12,7 @@ describe('pull request 2244', () => {
1012
extension: 'jpeg',
1113
});
1214
worksheet.addImage(imageId1, 'B2:D6');
13-
await workbook.xlsx.writeFile('test.xlsx');
15+
await workbook.xlsx.writeFile(TEST_2244_XLSX_FILE_NAME);
1416
}
1517
let error;
1618
try {

test.xlsx

6.15 KB
Binary file not shown.

0 commit comments

Comments
 (0)