Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Feb 13, 2024
1 parent d9266c4 commit 77e784d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ describe('endpoints', () => {
method: 'GET',
url: '/streaming',
});
const locals = { cancelledByTheServer: false }
req[Symbol.for("astro.locals")] = locals

const locals = { cancelledByTheServer: false };
req[Symbol.for('astro.locals')] = locals;

container.handle(req, res);

await new Promise(resolve => setTimeout(resolve, 500));
await new Promise((resolve) => setTimeout(resolve, 500));
res.emit('close');

await done;

expect(locals).to.deep.equal({ cancelledByTheServer: true });
});
});

0 comments on commit 77e784d

Please sign in to comment.