test.test('Location and listener provided', (t) => { const wsHost = router.ws('/', () => null); t.ok(wsHost instanceof WSHost); t.end(); });
test.test('Only location provided', (t) => { t.ok(router.ws('/') === null); t.end(); });
test.test('Location and options provided', (t) => { t.ok(router.ws('/', {}) === null); t.end(); });
test.test('Empty input', (t) => { t.ok(router.ws() === null); t.end(); });