()
| 229 | |
| 230 | socket.on("open", () => { |
| 231 | const handler = () => { |
| 232 | expect(socket.transport.readyState).to.eql("closed"); |
| 233 | expect(() => socket.write("ignored")).to.not.throwException(); |
| 234 | |
| 235 | removeEventListener("beforeunload", handler, false); |
| 236 | done(); |
| 237 | }; |
| 238 | |
| 239 | addEventListener("beforeunload", handler, false); |
| 240 | dispatchEvent(createEvent("beforeunload")); |
nothing calls this directly
no test coverage detected
searching dependent graphs…