From 57b9ea49cf056e4daf24608eef84fc002a029cef Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sun, 27 Dec 2020 22:39:32 +0800 Subject: [PATCH] server: tests: use "dummy" for multi-file case move torrent case expects "dummy". --- server/routes/api/torrents.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/api/torrents.test.ts b/server/routes/api/torrents.test.ts index f8fecbbb..18b32fb6 100644 --- a/server/routes/api/torrents.test.ts +++ b/server/routes/api/torrents.test.ts @@ -276,7 +276,7 @@ describe('POST /api/torrents/create', () => { const multiDirectoryPath = path.join(tempDirectory, '/multi'); fs.mkdirSync(multiDirectoryPath, {recursive: true}); - fs.writeFileSync(path.join(multiDirectoryPath, 'dummy1'), 'test'); + fs.writeFileSync(path.join(multiDirectoryPath, 'dummy'), 'test'); fs.writeFileSync(path.join(multiDirectoryPath, 'dummy2'), 'test'); request