mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
test(static) before -> connect
This commit is contained in:
parent
46c6ca51cf
commit
3a740330ec
5 changed files with 136 additions and 155 deletions
|
|
@ -228,10 +228,10 @@ test('cloudcmd: getIndexPath: development', (t) => {
|
|||
test('cloudcmd: sw', async (t) => {
|
||||
const {port, done} = await connect();
|
||||
const {statusCode}= await get(`http://localhost:${port}/sw.js`);
|
||||
done();
|
||||
|
||||
await done();
|
||||
|
||||
t.equal(statusCode, 200, 'should return sw');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue