From b72df1d64cbfcad666ee90d293601c38fee80fba Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 9 Oct 2019 17:03:46 +0300 Subject: [PATCH] test(mv) promises --- test/rest/mv.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/rest/mv.js b/test/rest/mv.js index 3ee8031e..fe75773c 100644 --- a/test/rest/mv.js +++ b/test/rest/mv.js @@ -14,6 +14,8 @@ const cloudcmdPath = '../../'; const dir = cloudcmdPath + 'server/'; const restPath = dir + 'rest'; +const {assign} = Object; + test('cloudcmd: rest: mv', async (t) => { const volume = { '/fixture/mv.txt': 'hello', @@ -26,6 +28,9 @@ test('cloudcmd: rest: mv', async (t) => { .use(vol) .use(fs); + assign(unionFS, { + promises: fs.promises, + }); mockRequire('fs', unionFS); reRequire('@cloudcmd/rename-files');