started with tests

This commit is contained in:
2016-06-05 13:50:45 +02:00
parent ea01b87949
commit e3c1ac1897
6 changed files with 40 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
import "typings-test";
import "should";
import path = require("path");
import * as beautylog from "beautylog"
//set up environment
process.env.CI_BUILD_REPO = "https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git";
process.cwd = () => {
@@ -34,6 +35,7 @@ describe("NPMCI",function(){
it("should sort an array of Dockerfiles",function(done){
NpmciBuildDocker.sortDockerfiles(sortableArray)
.then(function(sortedArrayArg:NpmciBuildDocker.Dockerfile[]){
beautylog.success("final result");
console.log(sortedArrayArg);
done();
})