Skip to content

Commit

Permalink
Run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Stadermann committed Sep 17, 2024
1 parent c00ca25 commit 12d55b4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions typescript/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,21 +329,21 @@ describe("Vaas", () => {
let webSocket: WebSocket.WebSocket;
let vaas: Vaas;

// beforeEach(async () => {
// webSocket = {
// readyState: WebSocket.WebSocket.CONNECTING as number,
// onopen: () => { },
// onclose: () => { },
// onmessage: () => { },
// send: (data: any) => { },
// close: () => { },
// } as any;
// vaas = new Vaas((url) => webSocket);
// });

// afterEach(() => {
// vaas.close();
// });
beforeEach(async () => {
webSocket = {
readyState: WebSocket.WebSocket.CONNECTING as number,
onopen: () => { },
onclose: () => { },
onmessage: () => { },
send: (data: any) => { },
close: () => { },
} as any;
vaas = new Vaas((url) => webSocket);
});

afterEach(() => {
vaas.close();
});

methodsAndParams.forEach(async ([method, params]) => {
describe(`#${method}()`, () => {
Expand Down Expand Up @@ -392,7 +392,7 @@ describe("Vaas", () => {
}
});

fit("throws if authentication failed", async () => {
it("throws if authentication failed", async () => {
const v = new Vaas();
try {
await expect(
Expand Down

0 comments on commit 12d55b4

Please sign in to comment.