MCPcopy
hub / github.com/socketio/socket.io / assert

Function assert

packages/socket.io/test/support/util.ts:72–74  ·  view source on GitHub ↗
(condition: any)

Source from the content-addressed store, hash-verified

70 * @param condition
71 */
72export function assert(condition: any): asserts condition {
73 expect(condition).to.be.ok();
74}
75
76export function getPort(io: Server): number {
77 return (io.httpServer.address() as AddressInfo).port;

Callers 2

uws.tsFile · 0.90
namespaces.tsFile · 0.90

Calls 1

okMethod · 0.80

Tested by

no test coverage detected