Skip to content

Commit

Permalink
test: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Dec 8, 2023
1 parent 4462f26 commit f4a3add
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions server/fixture-user-menu/io-cp-fix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

async function copy() {
await IO.copy(dirPath, mp3Dir, mp3Names);
}
2 changes: 0 additions & 2 deletions server/fixture-user-menu/io-mv-fix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

async function move() {
await IO.move(dirPath, mp3Dir, mp3Names);
}
4 changes: 2 additions & 2 deletions server/user-menu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

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

0 comments on commit f4a3add

Please sign in to comment.