Fixup appstore route related tests
This commit is contained in:
@@ -23,7 +23,7 @@ describe('Appstore Apps API', function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/appstore/apps`)
|
||||
.query({ access_token: owner.token })
|
||||
.ok(() => true);
|
||||
expect(response.statusCode).to.be(402); // not registered yet; invalid credentials
|
||||
expect(response.statusCode).to.be(402);
|
||||
});
|
||||
|
||||
it('cannot get app without subscription', async function () {
|
||||
@@ -31,7 +31,7 @@ describe('Appstore Apps API', function () {
|
||||
.query({ access_token: owner.token })
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.be(402); // not registered yet; invalid credentials
|
||||
expect(response.statusCode).to.be(402);
|
||||
});
|
||||
|
||||
it('register cloudron', async function () {
|
||||
|
||||
@@ -56,7 +56,6 @@ async function setup() {
|
||||
|
||||
await setupServer();
|
||||
await safe(fs.promises.unlink(support._sshInfo().filePath));
|
||||
await settings.setCloudronToken(exports.appstoreToken);
|
||||
|
||||
// setup
|
||||
let response = await superagent.post(`${serverUrl}/api/v1/cloudron/setup`)
|
||||
|
||||
Reference in New Issue
Block a user