add tests with in docker

This commit is contained in:
2016-06-16 04:18:10 +02:00
parent c58dad05cd
commit 49e7cc010b
7 changed files with 61 additions and 27 deletions

View File

@ -10,5 +10,20 @@ describe("dockersock",function(){
testDockersock = new Dockersock();
testDockersock.should.be.instanceof(Dockersock);
});
it("should list containers",function(done){
testDockersock.listContainers()
.then((dataArg)=>{
console.log(dataArg);
done();
});
});
it("should list detailed containers",function(done){
this.timeout(5000);
testDockersock.listContainersDetailed()
.then((dataArg)=>{
console.log(dataArg);
done();
});
});
});
});