Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nukeop/nuclear
/ simulateError
Method
simulateError
packages/player/src/test/mocks/eventSource.ts:42–45 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
40
}
41
42
simulateError() {
43
this.readyState = MockEventSource.CLOSED;
44
this.emit(
'error'
,
new
Event(
'error'
));
45
}
46
47
simulateEvent(
type
: string, data: unknown) {
48
this.emit(
Callers
2
simulateConnectionFailure
Function · 0.80
simulateConnectionDrop
Function · 0.80
Calls
1
emit
Method · 0.95
Tested by
no test coverage detected