docker/test/test.ts

29 lines
907 B
TypeScript
Raw Normal View History

2016-06-15 23:56:53 +00:00
import "typings-test";
import "should"
import {Dockersock} from "../dist/index"
describe("dockersock",function(){
describe(".Dockersock()",function(){
let testDockersock:Dockersock;
it("should create a new Dockersock instance",function(){
testDockersock = new Dockersock();
testDockersock.should.be.instanceof(Dockersock);
});
2016-06-16 02:18:10 +00:00
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();
});
});
2016-06-15 23:56:53 +00:00
});
});