improve .createRecord

This commit is contained in:
2016-05-25 06:26:48 +02:00
parent 0ed9c7f4f4
commit f44698078e
9 changed files with 60 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -43,22 +43,29 @@ describe("cflare",function(){
})
describe(".createRecord",function(){
this.timeout(10000);
it("should create a valid record for a domain",function(done){
it("should create a valid record for a level 2 domain",function(done){
testCflareAccount.createRecord("bleu.de","A","127.0.0.1")
.then(function(responseArg){
console.log(responseArg);
done();
});
});
it("should create a valid record for a subdomain",function(done){
testCflareAccount.createRecord("subdomain.bleu.de","A","127.0.0.1")
.then(function(responseArg){
console.log(responseArg);
done();
});
});
});
describe(".removeRecord",function(){
it("should remove a record from Cloudflare",function(done){
/*it("should remove a record from Cloudflare",function(done){
testCflareAccount.removeRecord()
.then(function(responseArg){
console.log(responseArg);
done();
})
});
});
});*/
});
})
});