Skip to content

Commit 68989a1

Browse files
committed
Coverage
1 parent 8577e15 commit 68989a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.ava.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,15 @@ test('explicit cert and ca', async t => {
7070
s.close();
7171
t.pass();
7272
});
73+
74+
test('just a callback', t => {
75+
const s = new MockTLSServer(sock => {
76+
sock.write('Hi\n');
77+
sock.pipe(sock);
78+
});
79+
t.truthy(s);
80+
});
81+
82+
test('connect fail', t => {
83+
t.throws(() => connect({}));
84+
});

0 commit comments

Comments
 (0)