Fix appstore-test
This commit is contained in:
@@ -41,7 +41,7 @@ describe('Appstore Apps API', function () {
|
||||
|
||||
it('can list apps', async function () {
|
||||
const scope1 = nock(settings.apiServerOrigin())
|
||||
.get(`/api/v1/apps?accessToken=${appstoreToken}&boxVersion=${constants.VERSION}&unstable=true`, () => true)
|
||||
.get(`/api/v1/apps?accessToken=${appstoreToken}&boxVersion=${constants.VERSION}&unstable=true&repository=core`, () => true)
|
||||
.reply(200, { apps: [] });
|
||||
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/appstore/apps`)
|
||||
@@ -98,7 +98,8 @@ describe('Appstore Cloudron Registration API - existing user', function () {
|
||||
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/appstore/register_cloudron`)
|
||||
.send({ email: 'test@cloudron.io', password: 'secret', signup: false })
|
||||
.query({ access_token: owner.token });
|
||||
.query({ access_token: owner.token })
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(201);
|
||||
expect(scope1.isDone()).to.not.be.ok(); // should not have called register_user since signup is false
|
||||
|
||||
Reference in New Issue
Block a user