Преглед изворни кода

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

Yordis Prieto пре 1 година
родитељ
комит
c0ee6a6d05
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/sdk/tests/uploads.test.ts

+ 1 - 1
packages/sdk/tests/uploads.test.ts

@@ -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');
   });