We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4c54f commit 7a5aefcCopy full SHA for 7a5aefc
test/docker.js
@@ -110,6 +110,32 @@ describe("#docker", function() {
110
src: ['Dockerfile']
111
}, {}, handler);
112
});
113
+
114
+ it("should throw error while building image using ENOENT files", function(done) {
115
+ this.timeout(60000);
116
117
+ function handler(err, stream) {
118
+ expect(err).not.to.be.null;
119
+ expect(stream).to.be.undefined;
120
121
+ if(stream !== undefined) {
122
+ stream.pipe(process.stdout, {
123
+ end: true
124
+ });
125
126
+ stream.on('end', function() {
127
+ done();
128
129
+ } else {
130
131
+ }
132
133
134
+ docker.buildImage({
135
+ context: __dirname,
136
+ src: ['Dockerfile2']
137
+ }, {}, handler);
138
139
140
141
0 commit comments