add NpmciTest module tests

This commit is contained in:
Philipp Kunz 2016-06-05 16:56:07 +02:00
parent c9ba850b4b
commit c718593162
2 changed files with 38 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();
});
})
});
}) })