Fix some tests

This commit is contained in:
Jon Staab
2025-04-08 10:17:30 -07:00
parent 1f7101daee
commit 74b20da8fb
11 changed files with 144 additions and 376 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ describe("Socket", () => {
expect(() => socket.open()).toThrow("Attempted to open a websocket that has not been closed")
})
it("should emit invalid status on invalid URL", () => {
it("should emit error status on invalid URL", () => {
const statusSpy = vi.fn()
socket.on(SocketEvent.Status, statusSpy)
@@ -66,7 +66,7 @@ describe("Socket", () => {
socket.open()
expect(statusSpy).toHaveBeenCalledWith(SocketStatus.Invalid, "wss://test.relay")
expect(statusSpy).toHaveBeenCalledWith(SocketStatus.Error, "wss://test.relay")
})
})