Skip to content

Commit b243f56

Browse files
committed
chore(fileop) lint
1 parent 1465662 commit b243f56

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ dist
1010
dist-dev
1111
server_
1212
*.swp
13-
.putoutcache
1413

.madrun.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default {
66
'fresh:lint': () => run('lint', '--fresh'),
77
'lint:fresh': () => run('lint', '--fresh'),
88
'fix:lint': () => run('lint', '--fix'),
9-
'coverage': async () => `nyc ${await run('test')}`,
10-
'report': () => `nyc report --reporter=text-lcov | coveralls`,
9+
'coverage': async () => `c8 ${await run('test')}`,
10+
'report': () => `c8 report --reporter=text-lcov | coveralls`,
1111
'build': () => run(['rmdir', 'build:*']),
1212
'build-progress': () => 'BABEL_ENV=client webpack --progress',
1313
'build:client': () => run('build-progress', '--mode production'),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"babel-loader": "^8.0.0",
6969
"babel-plugin-dynamic-import-node": "^2.0.0",
7070
"babel-plugin-dynamic-import-webpack": "^1.0.1",
71+
"c8": "^7.6.0",
7172
"clear-module": "^4.0.0",
7273
"coveralls": "^3.0.0",
7374
"emitify": "^4.0.1",
@@ -80,7 +81,6 @@
8081
"mock-require": "^3.0.1",
8182
"node-fetch": "^2.1.2",
8283
"nodemon": "^2.0.2",
83-
"nyc": "^15.0.0",
8484
"putout": "^15.1.2",
8585
"rimraf": "^3.0.0",
8686
"socket.io": "^3.1.0",

test/client/fileop.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ test('client: copy: error', async (t) => {
5151
const op = await operator.copy(from, to, files);
5252
const destroy = getDestroy(op);
5353
const [e] = await once(op, 'error');
54+
5455
done();
5556
after();
5657
destroy();
57-
t.equal(e, 'ENOENT: /hello', 'should equal');
58+
59+
t.equal(e, 'ENOENT: /hello/abc', 'should equal');
5860
t.end();
5961
});
6062

@@ -76,10 +78,12 @@ test('client: move: error', async (t) => {
7678
const op = await operator.move(from, to, files);
7779
const destroy = getDestroy(op);
7880
const [e] = await once(op, 'error');
81+
7982
done();
8083
after();
8184
destroy();
82-
t.equal(e, 'ENOENT: /hello', 'should equal');
85+
86+
t.equal(e, 'ENOENT: /hello/abc', 'should equal');
8387
t.end();
8488
});
8589

0 commit comments

Comments
 (0)