Skip to content

Commit

Permalink
Remove not relevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytroyarmak committed Mar 1, 2024
1 parent db1d649 commit 4c856ca
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/graphql/client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as sinon from "sinon";
import * as ws from "ws";

import { GraphQLError, UserUnauthorizedError } from "../../lib/errors";

Expand Down Expand Up @@ -552,27 +551,6 @@ describe("createSubscriptionClient", () => {
});
expect(subscriptionClient).to.equal(fakeGraphqlWsClient);
});

describe("when executing in a browser environment", () => {
before(() => {
(global as any).window = {
WebSocket: {...ws, fake: true},
};
});

after(() => {
(global as any).window = undefined;
});

it("should use the native browser WebSocket implementation", () => {
createClientStub.resetHistory();

client.graphQL.createSubscriptionClient();

expect(createClientStub.callCount).to.equal(1);
expect(createClientStub.getCall(0).args[0].webSocketImpl.fake).to.equal(true);
});
});
});
});

Expand Down

0 comments on commit 4c856ca

Please sign in to comment.