mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
d9266c4467
commit
77e784d6aa
1 changed files with 6 additions and 6 deletions
|
@ -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 });
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue