test: coverage

This commit is contained in:
coderaiser 2023-12-08 13:19:14 +02:00
parent 4462f26925
commit f4a3add818
3 changed files with 2 additions and 6 deletions

View file

@ -1,5 +1,3 @@
'use strict';
async function copy() {
await IO.copy(dirPath, mp3Dir, mp3Names);
}

View file

@ -1,5 +1,3 @@
'use strict';
async function move() {
await IO.move(dirPath, mp3Dir, mp3Names);
}

View file

@ -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();
});