This commit is contained in:
2017-08-28 01:03:59 +02:00
parent 108758ad19
commit d89cc90c4b
18 changed files with 908 additions and 732 deletions

View File

@ -33,7 +33,7 @@ tap.test('should return valid Dockerfiles', async () => {
})
tap.test('should read a directory of Dockerfiles', async () => {
return npmciModDocker.readDockerfiles()
return npmciModDocker.helpers.readDockerfiles()
.then(async (readDockerfilesArrayArg: npmciModDocker.Dockerfile[]) => {
sortableArray = readDockerfilesArrayArg
return expect(readDockerfilesArrayArg[1].version).to.equal('sometag1')
@ -41,7 +41,7 @@ tap.test('should read a directory of Dockerfiles', async () => {
})
tap.test('should sort an array of Dockerfiles', async () => {
return npmciModDocker.sortDockerfiles(sortableArray)
return npmciModDocker.helpers.sortDockerfiles(sortableArray)
.then(async (sortedArrayArg: npmciModDocker.Dockerfile[]) => {
console.log(sortedArrayArg)
})