Skip to content

Commit e5bea8f

Browse files
committed
chore(gritty) lint
1 parent 4e2907e commit e5bea8f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Node CI
2-
'on':
2+
on:
33
- push
44
- pull_request
55
jobs:
@@ -10,10 +10,11 @@ jobs:
1010
node-version:
1111
- 14.x
1212
- 16.x
13+
- 17.x
1314
steps:
14-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2
1516
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
1718
with:
1819
node-version: ${{ matrix.node-version }}
1920
- name: Install Redrun

test/client/gritty.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ test('gritty: onDisconnect: terminal', (t) => {
175175
const msg = 'terminal disconnected...';
176176

177177
_onDisconnect({writeln});
178+
178179
t.calledWith(writeln, [msg], 'should call terminal.writeln');
179180
t.end();
180181
});
@@ -185,6 +186,7 @@ test('gritty: onData: terminal', (t) => {
185186
const data = 'hello';
186187

187188
_onData({write}, data);
189+
188190
t.calledWith(write, [data], 'should call terminal.write');
189191
t.end();
190192
});
@@ -198,6 +200,7 @@ test('gritty: onTermResize: socket', (t) => {
198200
};
199201

200202
_onTermResize({emit}, size);
203+
201204
t.calledWith(emit, ['resize', size], 'should call socket.emit');
202205
t.end();
203206
});
@@ -208,6 +211,7 @@ test('gritty: onTermData: socket', (t) => {
208211
const data = 'hello';
209212

210213
_onTermData({emit}, data);
214+
211215
t.calledWith(emit, ['data', data], 'should call socket.emit');
212216
t.end();
213217
});

test/server/gritty.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const {connect} = require('../before');
2020

2121
test('gritty: listen: args: no', (t) => {
2222
const [error] = tryCatch(gritty.listen);
23+
2324
t.equal(error.message, 'socket could not be empty!', 'should throw when no args');
2425
t.end();
2526
});

0 commit comments

Comments
 (0)