(callback)
| 18 | }); |
| 19 | |
| 20 | function createTree(callback) { |
| 21 | fs.mkdir('tmp/tree/', function () { |
| 22 | fs.mkdir('tmp/tree/leaf', function () { |
| 23 | fs.mkdir('tmp/tree/leaf/node', function () { |
| 24 | fs.writeFile('tmp/tree/leaf/node/leaf.js', 'console.log("leaf")', function () { |
| 25 | fs.mkdir('tmp/tree/leftleaf', function () { |
| 26 | fs.writeFile('tmp/tree/leftleaf/leaf1.js', 'console.log("leaf")', function () { |
| 27 | callback(); |
| 28 | }); |
| 29 | }); |
| 30 | }); |
| 31 | }); |
| 32 | }); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | it('removes a file', function (done) { |
| 37 | var stream = clean(); |
no outgoing calls
no test coverage detected
searching dependent graphs…