mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 15:08:12 -05:00
test(sio): pin version of the client bundle in the tests
This commit is contained in:
@@ -6,7 +6,7 @@ import { getPort, successFn } from "./support/util";
|
||||
|
||||
describe("server attachment", () => {
|
||||
describe("http.Server", () => {
|
||||
const clientVersion = require("socket.io-client/package.json").version;
|
||||
const clientVersion = require("../package.json").version;
|
||||
|
||||
const testSource = (filename) => (done) => {
|
||||
const srv = createServer();
|
||||
|
||||
@@ -229,7 +229,7 @@ describe("socket.io with uWebSocket.js-based engine", () => {
|
||||
});
|
||||
|
||||
it("should serve static files", (done) => {
|
||||
const clientVersion = require("socket.io-client/package.json").version;
|
||||
const clientVersion = require("../package.json").version;
|
||||
|
||||
request(`http://localhost:${port}`)
|
||||
.get("/socket.io/socket.io.js")
|
||||
|
||||
Reference in New Issue
Block a user