cosmetic fix
This commit is contained in:
parent
cc82b3af04
commit
28fa5349d7
26
test/test.ts
26
test/test.ts
@ -1,44 +1,44 @@
|
|||||||
import "typings-test";
|
import "typings-test";
|
||||||
import "should";
|
import "should";
|
||||||
|
|
||||||
import {Dockersock} from "../dist/index"
|
import { Dockersock } from "../dist/index";
|
||||||
|
|
||||||
describe("dockersock",function(){
|
describe("dockersock", function () {
|
||||||
describe(".Dockersock()",function(){
|
describe(".Dockersock()", function () {
|
||||||
let testDockersock:Dockersock;
|
let testDockersock: Dockersock;
|
||||||
it("should create a new Dockersock instance",function(){
|
it("should create a new Dockersock instance", function () {
|
||||||
testDockersock = new Dockersock();
|
testDockersock = new Dockersock();
|
||||||
testDockersock.should.be.instanceof(Dockersock);
|
testDockersock.should.be.instanceof(Dockersock);
|
||||||
});
|
});
|
||||||
it("should list containers",function(done){
|
it("should list containers", function (done) {
|
||||||
testDockersock.listContainers()
|
testDockersock.listContainers()
|
||||||
.then((dataArg)=>{
|
.then((dataArg) => {
|
||||||
console.log(dataArg);
|
console.log(dataArg);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("should list detailed containers",function(done){
|
it("should list detailed containers", function (done) {
|
||||||
this.timeout(5000);
|
this.timeout(5000);
|
||||||
testDockersock.listContainersDetailed()
|
testDockersock.listContainersDetailed()
|
||||||
.then((dataArg)=>{
|
.then((dataArg) => {
|
||||||
console.log(dataArg);
|
console.log(dataArg);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("should pull an image from imagetag",function(done){
|
it("should pull an image from imagetag", function (done) {
|
||||||
this.timeout(60000);
|
this.timeout(60000);
|
||||||
testDockersock.pullImage("hosttoday/ht-docker-dbase")
|
testDockersock.pullImage("hosttoday/ht-docker-dbase")
|
||||||
.then((dataArg)=>{
|
.then((dataArg) => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it("should return a change Objservable",function(done){
|
it("should return a change Objservable", function (done) {
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
testDockersock.getChangeObservable();
|
testDockersock.getChangeObservable();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
testDockersock.endRequests();
|
testDockersock.endRequests();
|
||||||
done();
|
done();
|
||||||
},5000);
|
}, 5000);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
@ -1,2 +1,2 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
export {Dockersock} from "./dockersock.classes.dockersock";
|
export { Dockersock } from "./dockersock.classes.dockersock";
|
||||||
|
Loading…
Reference in New Issue
Block a user