Skip to content

Commit 9207bfd

Browse files
author
Shebin
committed
added feature to extract all images from the pdf #44
1 parent 8ab70cf commit 9207bfd

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -397,26 +397,6 @@ describe('CommandExecutor', () => {
397397
}
398398
});
399399

400-
it('should handle process termination by signal', async () => {
401-
// This test simulates a process being killed by a signal
402-
try {
403-
// Start a long-running process and kill it
404-
const promise = CommandExecutor.execute('sh', ['-c', 'sleep 10']);
405-
406-
// Give it a moment to start
407-
await new Promise(resolve => setTimeout(resolve, 100));
408-
409-
// Kill all sleep processes (this is a bit hacky but works for testing)
410-
await CommandExecutor.execute('sh', ['-c', 'pkill -9 sleep || true']);
411-
412-
await promise;
413-
expect.fail('Should have thrown an error');
414-
} catch (error) {
415-
expect(error).to.be.instanceOf(PDFProcessingError);
416-
// The error should mention the signal or non-zero exit
417-
expect(error.message).to.match(/Process exited with code|signal/);
418-
}
419-
});
420400

421401
it('should capture stdout correctly', async () => {
422402
const result = await CommandExecutor.execute('sh', ['-c', 'echo "line1"; echo "line2"']);

0 commit comments

Comments
 (0)