MCPcopy
hub / github.com/coder/code-server / masterBall

Function masterBall

test/unit/node/app.test.ts:84–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 })
83
84 async function masterBall() {
85 const app = await createApp(defaultArgs)
86
87 const testError = new Error("Test error")
88
89 app.server.emit("error", testError)
90
91 // Cleanup
92 app.dispose()
93 }
94
95 expect(() => masterBall()).rejects.toThrow("listen EACCES: permission denied")
96 })

Callers 1

app.test.tsFile · 0.85

Calls 3

createAppFunction · 0.90
emitMethod · 0.80
disposeMethod · 0.65

Tested by

no test coverage detected