now writing configs properly to disk

This commit is contained in:
LosslessBot
2016-07-08 04:24:07 +02:00
parent 9864dcc56a
commit 43e8549042
12 changed files with 54 additions and 17 deletions

View File

@@ -21,6 +21,16 @@ describe("smartnginx",function(){
it(`"new NginxConfig()" should produce an instance of NginxConfig`,function(){
testNginxConfig = new smartnginx.NginxConfig();
testNginxConfig.should.be.instanceof(smartnginx.NginxConfig);
});
});
describe(".addZone()",function(){
it("should add a zone to NginxConfig Object",function(){
testNginxConfig.addZone(testNginxZone01);
})
});
describe(".deploy()",function(){
it("should deploy a config from an instance",function(){
testNginxConfig.deploy();
})
});
});
});