MCPcopy Create free account
hub / github.com/Yaffle/EventSource / f

Function f

tests/tests.js:187–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 var es = new EventSource(url + "?estest=" + encodeURIComponent(commonHeaders + "\n\n" + body));
186 var s = "";
187 var f = function () {
188 es.onerror = es.onmessage = undefined;
189 es.close();
190 strictEqual(s, "", "Once the end of the file is reached, any pending data must be discarded. (If the file ends in the middle of an event, before the final empty line, the incomplete event is not dispatched.)");
191 start();
192 };
193 es.onmessage = function (e) {
194 s = e.data;
195 f();

Callers 1

mainTestsFunction · 0.70

Calls 1

startFunction · 0.70

Tested by

no test coverage detected