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',
|
method: 'GET',
|
||||||
url: '/streaming',
|
url: '/streaming',
|
||||||
});
|
});
|
||||||
|
|
||||||
const locals = { cancelledByTheServer: false }
|
const locals = { cancelledByTheServer: false };
|
||||||
req[Symbol.for("astro.locals")] = locals
|
req[Symbol.for('astro.locals')] = locals;
|
||||||
|
|
||||||
container.handle(req, res);
|
container.handle(req, res);
|
||||||
|
|
||||||
await new Promise(resolve => setTimeout(resolve, 500));
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
||||||
res.emit('close');
|
res.emit('close');
|
||||||
|
|
||||||
await done;
|
await done;
|
||||||
|
|
||||||
expect(locals).to.deep.equal({ cancelledByTheServer: true });
|
expect(locals).to.deep.equal({ cancelledByTheServer: true });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue