provider is always set in domain config

This commit is contained in:
Girish Ramakrishnan
2018-01-09 14:25:58 -08:00
parent f236bd3316
commit 373c003223
2 changed files with 4 additions and 14 deletions

View File

@@ -64,7 +64,9 @@ var USER_2 = {
const TEST_DOMAIN = {
domain: 'example.com',
zoneName: 'example.com',
config: {}
config: {
provider: 'manual'
}
};
describe('database', function () {
@@ -126,18 +128,6 @@ describe('database', function () {
});
});
it('can get domain without provider set', function (done) {
domaindb.get(DOMAIN_1.domain, function (error, result) {
expect(error).to.equal(null);
expect(result).to.be.an('object');
expect(result.domain).to.equal(DOMAIN_1.domain);
expect(result.zoneName).to.equal(DOMAIN_1.zoneName);
expect(result.config).to.eql(DOMAIN_1.config);
done();
});
});
it('can update domain', function (done) {
const newConfig = { provider: 'manual' };