Skip to content

Commit 71d5094

Browse files
Test
1 parent f7fef5b commit 71d5094

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/flowchart/flowchart.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ function flowchart(inputPath, outputPath, cb) {
1111
]);
1212

1313
child.stdout.on('data', function (data) {
14-
//console.log('stdout: ' + data);
14+
console.log('stdout: ' + data);
15+
});
16+
17+
child.stderr.on('data', function (data) {
18+
console.log('stdout: ' + data);
1519
});
1620

1721
child.on('close', function (code) {
1822
//console.log('child process exited with code ' + code);
19-
cb();
23+
cb(code);
2024
});
2125

2226
};

tests/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let tmpDir;
66
module.exports = {
77
init(cb){
88
tmpDir = path.resolve(os.tmpdir(), 'diagrams-test/');
9+
console.log(tmpDir);
910
fs.ensureDirSync(tmpDir);
1011
setTimeout(cb, 0);
1112
},

0 commit comments

Comments
 (0)