Update src/lib/__tests__/file-prep.test.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Göran Sander
2025-07-30 17:49:32 +02:00
committed by GitHub
parent 803fd4dfeb
commit cdfd39cfec

View File

@@ -272,7 +272,7 @@ describe('file-prep', () => {
// Test binary content stream
path.extname.mockReturnValue('.png');
const binaryBuffer = Buffer.from([0x89, 0x50, 0x4e, 0x47]); // PNG header
const binaryBuffer = Buffer.from([0x89, 0x50, 0x4E, 0x47]); // PNG header
fs.readFileSync.mockReturnValue(binaryBuffer);
const binaryResult = await prepareFile('/test/image.png');