(srcOptions, done)
| 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 | }); |
no outgoing calls
no test coverage detected
searching dependent graphs…