chore(runtime): upgrade DSH and bundled plugins for runtime-7.11

This commit is contained in:
2026-10-30 17:08:16 +08:00
parent 0389555d76
commit 169e1ffdc2
17 changed files with 70 additions and 44 deletions
+4 -4
View File
@@ -7,11 +7,11 @@ import { createConverter, runProcess } from './native-office.mjs';
import { patchOffice, target } from './install-office-preview.mjs';
test('patch is exact, version gated and refuses repeat application', () => {
const patched = patchOffice(target, '0.2.1-rc.3', '0.2.1-rc.3');
const patched = patchOffice(target, '0.2.1-rc.5', '0.2.1-rc.5');
assert.match(patched, /dsh-native-office/);
for (const source of ['', target + target, patched]) assert.throws(() => patchOffice(source, '0.2.1-rc.3', '0.2.1-rc.3'));
assert.throws(() => patchOffice(target, 'next', '0.2.1-rc.3'));
assert.throws(() => patchOffice(target, '0.2.1-rc.3', 'next'));
for (const source of ['', target + target, patched]) assert.throws(() => patchOffice(source, '0.2.1-rc.5', '0.2.1-rc.5'));
assert.throws(() => patchOffice(target, 'next', '0.2.1-rc.5'));
assert.throws(() => patchOffice(target, '0.2.1-rc.5', 'next'));
});
test('process cancellation, missing binary and failure are classified', async () => {