mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 09:14:22 +01:00
fix: update file name extraction in uploads test to use __filename (#1395)
This commit is contained in:
@@ -51,7 +51,7 @@ describe('toFile', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('extracts a file name from a ReadStream', async () => {
|
it('extracts a file name from a ReadStream', async () => {
|
||||||
const input = fs.createReadStream('tests/uploads.test.ts');
|
const input = fs.createReadStream(__filename);
|
||||||
const file = await toFile(input);
|
const file = await toFile(input);
|
||||||
expect(file.name).toEqual('uploads.test.ts');
|
expect(file.name).toEqual('uploads.test.ts');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user