0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
Ming-jun Lu 2024-02-13 11:29:20 +00:00 committed by astrobot-houston
parent d9266c4467
commit 77e784d6aa

View file

@ -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 });
});
});