Remove isDev flag

We can pretty much test everything here on self-hosted cloudrons now
This commit is contained in:
Girish Ramakrishnan
2017-04-13 11:24:57 -07:00
parent f6a2406091
commit cdb5dc2c53
8 changed files with 10 additions and 18 deletions
+4 -4
View File
@@ -125,13 +125,13 @@ describe('Certificates', function () {
});
});
it('returns non-prod caas for dev cloudron', function (done) {
it('returns prod caas for dev cloudron', function (done) {
config.set('boxVersionsUrl', 'http://dev/release.json');
certificates._getApi({ }, function (error, api, options) {
expect(error).to.be(null);
expect(api._name).to.be('caas');
expect(options.prod).to.be(false);
expect(options.prod).to.be(true);
done();
});
});
@@ -147,13 +147,13 @@ describe('Certificates', function () {
});
});
it('returns non-prod acme with altDomain in dev cloudron', function (done) {
it('returns prod acme with altDomain in dev cloudron', function (done) {
config.set('boxVersionsUrl', 'http://dev/release.json');
certificates._getApi({ altDomain: 'foo.something.com' }, function (error, api, options) {
expect(error).to.be(null);
expect(api._name).to.be('acme');
expect(options.prod).to.be(false);
expect(options.prod).to.be(true);
done();
});
});