示例#1
0
	test.test('Location and listener provided', (t) => {

		const wsHost = router.ws('/', () => null);

		t.ok(wsHost instanceof WSHost);

		t.end();
	});
示例#2
0
	test.test('Only location provided', (t) => {

		t.ok(router.ws('/') === null);
		t.end();
	});
示例#3
0
	test.test('Location and options provided', (t) => {

		t.ok(router.ws('/', {}) === null);
		t.end();
	});
示例#4
0
	test.test('Empty input', (t) => {
		t.ok(router.ws() === null);
		t.end();
	});