mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-14 05:03:49 +08:00
test(e2e): address remaining copilot review comments
This commit is contained in:
1
tests/e2e/.gitignore
vendored
1
tests/e2e/.gitignore
vendored
@@ -4,7 +4,6 @@ test-results/
|
|||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
fixtures/archive-tmp/
|
fixtures/archive-tmp/
|
||||||
fixtures/zip-tmp/
|
|
||||||
fixtures/sample.docx
|
fixtures/sample.docx
|
||||||
fixtures/sample.xlsx
|
fixtures/sample.xlsx
|
||||||
fixtures/sample.pptx
|
fixtures/sample.pptx
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ try {
|
|||||||
|
|
||||||
ensureArchive('sample.7z', out => {
|
ensureArchive('sample.7z', out => {
|
||||||
try {
|
try {
|
||||||
execFileSync('7z', ['a', '-bd', '-y', out, 'inner.txt'], { cwd: archiveWork, stdio: 'ignore' });
|
execFileSync('7z', ['a', '-bd', '-y', out, 'inner.txt'], { cwd: archiveWork });
|
||||||
} catch {
|
} catch {
|
||||||
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
|
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user