fix: update file name extraction in uploads test to use __filename (#1395)

pull/1396/head
Yordis Prieto 2025-07-29 13:28:44 -04:00 committed by GitHub
parent 68ae0d107c
commit c0ee6a6d05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ describe('toFile', () => {
});
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);
expect(file.name).toEqual('uploads.test.ts');
});