mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-08 16:57:14 +01:00
fix(merge-pdf): keep worker errors out of the alert, add missing fr key
This commit is contained in:
1 parent
ab8f4c20a8
commit
448035b77b
3 files changed
+11
-4
No files matched your search
@@ -39,6 +39,13 @@ describe('merge PDF notifications are localized', () => {
|
||||
expect(literalCalls).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('never surfaces the raw worker message to the user', () => {
|
||||
const rawWorkerMessageInAlert = [
|
||||
...source.matchAll(/\bshowAlert\([^;]*?\be\.data\.message/gs),
|
||||
];
|
||||
expect(rawWorkerMessageInAlert).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('references at least the alert and loader keys added for the merge tool', () => {
|
||||
expect(usedKeys).toContain('tools:mergePdf.alert.mergeSuccess');
|
||||
expect(usedKeys).toContain('tools:mergePdf.loader.merging');
|
||||
|
||||
Reference in new issue
Block a user