Skip to content

Commit

Permalink
[test] Move test to appropriate section
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Apr 22, 2020
1 parent 06d8660 commit 79dfbcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/websocket-server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ describe('WebSocketServer', () => {
assert.throws(() => new WebSocket.Server());
});

it('throws an error if no port or server is specified', () => {
assert.throws(() => new WebSocket.Server({}));
});

describe('options', () => {
it('throws an error if no `port` or `server` option is specified', () => {
assert.throws(() => new WebSocket.Server({}));
});

it('exposes options passed to constructor', (done) => {
const wss = new WebSocket.Server({ port: 0 }, () => {
assert.strictEqual(wss.options.port, 0);
Expand Down

0 comments on commit 79dfbcf

Please sign in to comment.