Fix tests
This commit is contained in:
@@ -55,9 +55,16 @@ describe('Provision', function () {
|
||||
.post('/api/v1/register_cloudron3', (body) => typeof body.domain === 'string' && typeof body.version === 'string')
|
||||
.reply(201, { cloudronId: '32', cloudronToken: 'xx' });
|
||||
|
||||
const scope2 = nock(await appstore.getApiServerOrigin())
|
||||
.post('/api/v1/subscription3?accessToken=xx', (body) => typeof body.state === 'object' && typeof body.state.userCount === 'number')
|
||||
.reply(200, { features: {} });
|
||||
|
||||
await provision.activate('username', 'password', 'test@cloudron.io', 'Some Name', '1.2.3.4', auditSource);
|
||||
expect(scope1.isDone()).to.be.ok();
|
||||
scope1.persist(false);
|
||||
|
||||
expect(scope2.isDone()).to.be.ok();
|
||||
scope2.persist(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user