add NpmciTest module tests
This commit is contained in:
parent
c9ba850b4b
commit
c718593162
20
test/test.js
20
test/test.js
File diff suppressed because one or more lines are too long
20
test/test.ts
20
test/test.ts
@ -11,6 +11,7 @@ process.cwd = () => {
|
|||||||
|
|
||||||
//require NPMCI files
|
//require NPMCI files
|
||||||
import NpmciBuildDocker = require("../dist/npmci.build.docker");
|
import NpmciBuildDocker = require("../dist/npmci.build.docker");
|
||||||
|
import NpmciTest = require("../dist/npmci.test");
|
||||||
|
|
||||||
|
|
||||||
let dockerfile1:NpmciBuildDocker.Dockerfile;
|
let dockerfile1:NpmciBuildDocker.Dockerfile;
|
||||||
@ -47,5 +48,22 @@ describe("NPMCI",function(){
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
describe(".test.npm",function(){
|
||||||
|
it("should source nvm using bash and install a specific node version",function(done){
|
||||||
|
NpmciTest.test("legacy")
|
||||||
|
.then(() => {
|
||||||
|
return NpmciTest.test("lts");
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
return NpmciTest.test("stable");
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
return NpmciTest.test("docker");
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
})
|
||||||
|
});
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user