We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e8d7c commit 2022de9Copy full SHA for 2022de9
2 files changed
.madrun.js
@@ -1,7 +1,7 @@
1
import {run} from 'madrun';
2
3
export default {
4
- 'test': () => `tape 'test/**/*.js'`,
+ 'test': () => `tape 'test/**/*.js' 'client/**/*.spec.js'`,
5
'lint': () => 'putout .',
6
'fresh:lint': () => run('lint', '--fresh'),
7
'lint:fresh': () => run('lint', '--fresh'),
client/load-socket.spec.js
@@ -0,0 +1,11 @@
+import {test} from 'supertape';
+import loadSocket from './load-socket.js';
+
+test('fileop: client: load-socket: no io', async (t) => {
+ globalThis.io = 'x';
+ const io = await loadSocket();
+ delete globalThis.io;
8
9
+ t.equal(io, 'x');
10
+ t.end();
11
+})
0 commit comments