From 37b9fb417abc3a11e5e7c5d4e47337467e120ac6 Mon Sep 17 00:00:00 2001 From: fraisai Date: Tue, 16 Jan 2024 09:18:01 -0500 Subject: [PATCH] integration tests --- .../integration/ws.integration.test.ts | 59 +++++++++---------- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/lib/__tests__/integration/ws.integration.test.ts b/lib/__tests__/integration/ws.integration.test.ts index db3ea08..ee72b6f 100644 --- a/lib/__tests__/integration/ws.integration.test.ts +++ b/lib/__tests__/integration/ws.integration.test.ts @@ -1,5 +1,34 @@ 'use strict'; import { WebSocket } from 'ws'; +// const assert = require('assert'); +// const crypto = require('crypto'); +// const https = require('https'); +// const path = require('path'); +// const net = require('net'); +// const tls = require('tls'); +// const os = require('os'); +// const fs = require('fs'); +// const { getDefaultHighWaterMark } = require('stream'); +// const { URL } = require('url'); + +// const Sender = require('../lib/sender'); +// const WebSocket = require('..'); +// const { +// CloseEvent, +// ErrorEvent, +// Event, +// MessageEvent +// } = require('../lib/event-target'); +// const { EMPTY_BUFFER, GUID, kListener, NOOP } = require('../lib/constants'); + +// const highWaterMark = getDefaultHighWaterMark +// ? getDefaultHighWaterMark(false) +// : 16 * 1024; + +// class CustomAgent extends http.Agent { +// addRequest() {} +// } + WebSocket.EventEmitter; beforeAll((done) => { @@ -4234,33 +4263,3 @@ describe('WebSocket checks', () => { - -// const assert = require('assert'); -// const crypto = require('crypto'); -// const https = require('https'); -// const path = require('path'); -// const net = require('net'); -// const tls = require('tls'); -// const os = require('os'); -// const fs = require('fs'); -// const { getDefaultHighWaterMark } = require('stream'); -// const { URL } = require('url'); - -// const Sender = require('../lib/sender'); -// const WebSocket = require('..'); -// const { -// CloseEvent, -// ErrorEvent, -// Event, -// MessageEvent -// } = require('../lib/event-target'); -// const { EMPTY_BUFFER, GUID, kListener, NOOP } = require('../lib/constants'); - -// const highWaterMark = getDefaultHighWaterMark -// ? getDefaultHighWaterMark(false) -// : 16 * 1024; - -// class CustomAgent extends http.Agent { -// addRequest() {} -// } -