Move AppstoreError to BoxError

This commit is contained in:
Girish Ramakrishnan
2019-10-24 17:28:59 -07:00
parent 4793eb9ef5
commit d6365ff27f
7 changed files with 118 additions and 155 deletions

View File

@@ -9,7 +9,7 @@
var async = require('async'),
appstore = require('../appstore.js'),
AppstoreError = appstore.AppstoreError,
BoxError = require('../boxerror.js'),
database = require('../database.js'),
expect = require('expect.js'),
nock = require('nock'),
@@ -52,7 +52,7 @@ describe('Appstore', function () {
it('cannot send alive status without registering', function (done) {
appstore.sendAliveStatus(function (error) {
expect(error).to.be.ok();
expect(error.reason).to.equal(AppstoreError.NOT_REGISTERED);
expect(error.reason).to.equal(BoxError.LICENSE_ERROR); // missing token
done();
});
});