mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-22 18:29:26 +00:00
test: coverage
This commit is contained in:
parent
4462f26925
commit
f4a3add818
3 changed files with 2 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
async function copy() {
|
||||
await IO.copy(dirPath, mp3Dir, mp3Names);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
async function move() {
|
||||
await IO.move(dirPath, mp3Dir, mp3Names);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ test('cloudcmd: user menu: io.mv', async (t) => {
|
|||
threadIt.terminate();
|
||||
fs.promises.readFile = readFile;
|
||||
|
||||
t.equal(fixtureMoveFix, body);
|
||||
t.equal(body, fixtureMoveFix);
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
@ -83,6 +83,6 @@ test('cloudcmd: user menu: io.cp', async (t) => {
|
|||
threadIt.terminate();
|
||||
fs.promises.readFile = readFile;
|
||||
|
||||
t.equal(fixtureCopyFix, body);
|
||||
t.equal(body, fixtureCopyFix);
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue