Commit cc8448a
authored
Fix the
This is how the test in test/test.ts looks.
I think we got it wrong in 08c1aa6
Before this change, the test failed like this
FAIL |test-browser| test-browser/websocket.ts > has an onerror callback
AssertionError: expected "spy" to be called at least once
❯ Proxy.methodWrapper ../../../../node_modules/.vite/deps/vitest___chai.js:1050:29
❯ test-browser/websocket.ts:600:23
598| conn.onerror = vi.fn((err) => errMessage = err.message)
599| await expect(ch.exchangeDeclare("none", "none")).rejects.toThrow()
600| expect(conn.onerror).toBeCalled()
| ^
601| expect(errMessage).toMatch(/invalid exchange type/)
602| })has an onerror callback websocket test (#135)1 parent 417d44f commit cc8448a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
0 commit comments