remove unused appstore.getAccount

This commit is contained in:
Girish Ramakrishnan
2019-04-30 22:30:13 -07:00
parent 7a5a94614e
commit e544e77fd9
2 changed files with 0 additions and 33 deletions

View File

@@ -109,19 +109,6 @@ describe('Appstore', function () {
});
});
it('can get account', function (done) {
var scope = nock('http://localhost:6060')
.get(`/api/v1/users/${APPSTORE_USER_ID}?accessToken=${APPSTORE_TOKEN}`)
.reply(200, { profile: { id: APPSTORE_USER_ID }});
appstore.getAccount(function (error, result) {
expect(error).to.not.be.ok();
expect(scope.isDone()).to.be.ok();
expect(result.id).to.equal(APPSTORE_USER_ID);
done();
});
});
it('can purchase an app', function (done) {
var scope1 = nock('http://localhost:6060')
.post(`/api/v1/users/${APPSTORE_USER_ID}/cloudrons/${CLOUDRON_ID}/apps/${APP_ID}?accessToken=${APPSTORE_TOKEN}`, function () { return true; })