mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(mv) promises
This commit is contained in:
parent
d062b8c32f
commit
b72df1d64c
1 changed files with 5 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue