Skip to content

Commit

Permalink
[test] Fix repeated typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Jun 20, 2021
1 parent e3f0c17 commit 145480a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/websocket-server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ describe('WebSocketServer', () => {
});
});

it('fails is the Sec-WebSocket-Version header is invalid (1/2)', (done) => {
it('fails if the Sec-WebSocket-Version header is invalid (1/2)', (done) => {
const wss = new WebSocket.Server({ port: 0 }, () => {
const req = http.get({
port: wss.address().port,
Expand All @@ -493,7 +493,7 @@ describe('WebSocketServer', () => {
});
});

it('fails is the Sec-WebSocket-Version header is invalid (2/2)', (done) => {
it('fails if the Sec-WebSocket-Version header is invalid (2/2)', (done) => {
const wss = new WebSocket.Server({ port: 0 }, () => {
const req = http.get({
port: wss.address().port,
Expand All @@ -516,7 +516,7 @@ describe('WebSocketServer', () => {
});
});

it('fails is the Sec-WebSocket-Extensions header is invalid', (done) => {
it('fails if the Sec-WebSocket-Extensions header is invalid', (done) => {
const wss = new WebSocket.Server(
{
perMessageDeflate: true,
Expand Down

0 comments on commit 145480a

Please sign in to comment.