Repository navigation
Commit 6dd39e1
committed
test: add unit tests for DOCX, XLSX, and PPTX processing functions
- Implement tests for extractDocxMediaUrls to validate media extraction from DOCX files.
- Add tests for preprocessXlsxLineBreaks to ensure proper handling of line breaks in XLSX files.
- Create tests for preprocessPptx to verify the injection of app.xml and core.xml, as well as the removal of unnecessary attributes from notes slides.
- Utilize a custom ZIP builder to simulate real binary archives for comprehensive testing.1 parent 4badaeb commit 6dd39e1
11 files changed
Lines changed: 315 additions & 455 deletions
File tree
- packages
- chat-ui
- converter
- src
- public/ranui-iife
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments