style: prettier-format the parseSSE test
Caught by CI's clients/web format:check, not by my local run — I had formatted core/ and scripts/ but not the web client's src, which is where the test lives. Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
6cacfa3ec5
commit
99f2a20eb0
1 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,7 @@ describe("parseSSE chunk boundaries", () => {
|
|||
// THE BUG. Chunk 1 ends after the data line's newline; chunk 2 carries only
|
||||
// the blank line that closes the frame. Nothing is malformed — this is one
|
||||
// valid frame, delivered in two reads.
|
||||
const split = [
|
||||
'event: message\ndata: {"id":1,"result":"payload"}\n',
|
||||
"\n",
|
||||
];
|
||||
const split = ['event: message\ndata: {"id":1,"result":"payload"}\n', "\n"];
|
||||
expect(split.join("")).toBe(FRAME); // same bytes as above, different reads
|
||||
expect(await collect(split)).toEqual([
|
||||
{ event: "message", data: '{"id":1,"result":"payload"}' },
|
||||
|
|
|
|||
Loading…
Reference in a new issue