Fix various error handling

* appstore never returns 403
* change billing_required to plan_limit
This commit is contained in:
Girish Ramakrishnan
2019-05-06 15:00:22 -07:00
parent 7bb6016f7b
commit ffe0e6dbbe
7 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ describe('Appstore', function () {
beforeEach(nock.cleanAll);
it('cannot send alive status without cloudron token', function (done) {
it('cannot send alive status without registering', function (done) {
appstore.sendAliveStatus(function (error) {
expect(error).to.be.ok();
expect(error.reason).to.equal(AppstoreError.INVALID_TOKEN);
expect(error.reason).to.equal(AppstoreError.NOT_REGISTERED);
done();
});
});