mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
fix: update file name extraction in uploads test to use __filename (#1395)
This commit is contained in:
parent
68ae0d107c
commit
c0ee6a6d05
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue