Skip to content

Commit 6dd39e1

Browse files
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

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@ranuts/chat-ui": "workspace:*",
7373
"@ranuts/converter": "workspace:*",
7474
"@ranuts/shared": "workspace:*",
75-
"ranui": "0.4.1-alpha.2",
76-
"ranuts": "0.3.0-alpha.1"
75+
"ranui": "0.4.2-alpha.2",
76+
"ranuts": "0.4.0-alpha.1"
7777
}
7878
}

‎packages/chat-ui/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"prepare": "tsc -p tsconfig.json"
2323
},
2424
"dependencies": {
25-
"ranui": "0.2.0-alpha.5",
26-
"ranuts": "0.2.0-alpha.0"
25+
"ranui": "0.4.2-alpha.2",
26+
"ranuts": "0.4.0-alpha.1"
2727
},
2828
"devDependencies": {
2929
"typescript": "^6.0.3"

‎packages/converter/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"dependencies": {
2525
"@ranuts/shared": "workspace:*",
26-
"ranui": "0.2.0-alpha.5",
27-
"ranuts": "0.2.0-alpha.0"
26+
"ranui": "0.4.2-alpha.2",
27+
"ranuts": "0.4.0-alpha.1"
2828
},
2929
"devDependencies": {
3030
"typescript": "^6.0.3"

0 commit comments

Comments
 (0)