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