|
1 | 1 | "use strict"; |
2 | 2 |
|
3 | | -import { Server, Socket } from ".."; |
| 3 | +import { Server, Socket, Namespace } from ".."; |
4 | 4 | import { createServer } from "http"; |
5 | 5 | import fs = require("fs"); |
6 | 6 | import { join } from "path"; |
@@ -373,9 +373,6 @@ describe("socket.io", () => { |
373 | 373 | }); |
374 | 374 |
|
375 | 375 | describe("namespaces", () => { |
376 | | - const { Socket } = require("../dist/socket"); |
377 | | - const { Namespace } = require("../dist/namespace"); |
378 | | - |
379 | 376 | it("should be accessible through .sockets", () => { |
380 | 377 | const sio = new Server(); |
381 | 378 | expect(sio.sockets).to.be.a(Namespace); |
@@ -2391,8 +2388,6 @@ describe("socket.io", () => { |
2391 | 2388 | }); |
2392 | 2389 |
|
2393 | 2390 | describe("middleware", () => { |
2394 | | - const { Socket } = require("../dist/socket"); |
2395 | | - |
2396 | 2391 | it("should call functions", (done) => { |
2397 | 2392 | const srv = createServer(); |
2398 | 2393 | const sio = new Server(srv); |
@@ -2581,8 +2576,6 @@ describe("socket.io", () => { |
2581 | 2576 | }); |
2582 | 2577 |
|
2583 | 2578 | describe("socket middleware", () => { |
2584 | | - const { Socket } = require("../dist/socket"); |
2585 | | - |
2586 | 2579 | it("should call functions", (done) => { |
2587 | 2580 | const srv = createServer(); |
2588 | 2581 | const sio = new Server(srv); |
|
0 commit comments