MCPcopy
hub / github.com/gulpjs/gulp / testWriteDir

Function testWriteDir

test/dest.js:117–134  ·  view source on GitHub ↗
(srcOptions, done)

Source from the content-addressed store, hash-verified

115 });
116
117 function testWriteDir(srcOptions, done) {
118 var instream = gulp.src('./fixtures/stuff', srcOptions);
119 var outstream = instream.pipe(gulp.dest(outpath));
120
121 outstream.on('error', done);
122 outstream.on('data', function(file) {
123 // Data should be re-emitted right
124 expect(file).toBeDefined();
125 expect(file.path).toBeDefined();
126 expect(file.path).toEqual(path.join(outpath, './stuff'));
127 });
128 outstream.on('end', function() {
129 fs.exists(path.join(outpath, 'stuff'), function(exists) {
130 expect(exists).toBeDefined();
131 done();
132 });
133 });
134 }
135
136});

Callers 1

dest.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…