Skip to content

Commit

Permalink
Test for #490
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Sep 19, 2019
1 parent ad4c54f commit 7a5aefc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,32 @@ describe("#docker", function() {
src: ['Dockerfile']
}, {}, handler);
});

it("should throw error while building image using ENOENT files", function(done) {
this.timeout(60000);

function handler(err, stream) {
expect(err).not.to.be.null;
expect(stream).to.be.undefined;

if(stream !== undefined) {
stream.pipe(process.stdout, {
end: true
});

stream.on('end', function() {
done();
});
} else {
done();
}
}

docker.buildImage({
context: __dirname,
src: ['Dockerfile2']
}, {}, handler);
});
});


Expand Down

0 comments on commit 7a5aefc

Please sign in to comment.