部署适配

This commit is contained in:
brother7 committed 2026-08-29 15:02:51 +08:00
1 parent 7b5d855b09
commit c65f00c941
57 files changed
+1075 -50

No files matched your search

+3 -1
View File
@@ -601,7 +601,9 @@ test('backend-attached export requires frozen hashes and explicit no-delivery ev
assert.equal(successReceiptFromResult(mismatchedCount), null);
});
test('confirmation export archives visitor XLS, delivers real XLSX, and converts other types to PDF', async () => {
test('confirmation export archives visitor XLS, delivers real XLSX, and converts other types to PDF', {
skip: process.platform === 'win32' ? 'Unix fake converter fixture is not executable through Windows execFile.' : false
}, async () => {
const temporaryDirectory = await mkdtemp(join(tmpdir(), 'ltjt-selective-conversion-test-'));
const converterPath = join(temporaryDirectory, 'fake-soffice.sh');
await writeFile(converterPath, [
@@ -46,7 +46,9 @@ test('conversion failure falls back to the source file', async () => {
assert.deepEqual(result.content, content);
});
test('a valid converter output replaces the source with a PDF', async () => {
test('a valid converter output replaces the source with a PDF', {
skip: process.platform === 'win32' ? 'Unix fake converter fixture is not executable through Windows execFile.' : false
}, async () => {
const temporaryDirectory = await mkdtemp(join(tmpdir(), 'ltjt-converter-test-'));
const converterPath = join(temporaryDirectory, 'fake-soffice.sh');
const fontConfigFile = join(temporaryDirectory, 'fonts.conf');
@@ -85,7 +87,9 @@ test('a valid converter output replaces the source with a PDF', async () => {
}
});
test('HTML-in-XLS visitor sources become real XLSX workbooks', async () => {
test('HTML-in-XLS visitor sources become real XLSX workbooks', {
skip: process.platform === 'win32' ? 'Unix fake converter fixture is not executable through Windows execFile.' : false
}, async () => {
const temporaryDirectory = await mkdtemp(join(tmpdir(), 'ltjt-converter-xlsx-test-'));
const converterPath = join(temporaryDirectory, 'fake-soffice.sh');
await writeFile(converterPath, [
@@ -140,7 +144,9 @@ test('visitor XLSX conversion failure remains a source fallback', async () => {
assert.deepEqual(result.content, content);
});
test('wide Word HTML tables are scaled to the printable width before conversion', async () => {
test('wide Word HTML tables are scaled to the printable width before conversion', {
skip: process.platform === 'win32' ? 'Unix fake converter fixture is not executable through Windows execFile.' : false
}, async () => {
const temporaryDirectory = await mkdtemp(join(tmpdir(), 'ltjt-converter-html-test-'));
const converterPath = join(temporaryDirectory, 'fake-soffice.sh');
await writeFile(converterPath, [