resolves #131 create output directory immediately (#167)

* resolves #131 create output directory immediately

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>

* fix error if no steps are passed

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>

* add exit message if steps not passed

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>

* add test for creating output directory
This commit is contained in:
Varun Gupta
2018-02-07 03:12:22 +05:30
committed by Jeffrey Warren
parent c5dee8aef3
commit 32c5a29906
5 changed files with 45 additions and 5 deletions

13
test/cli.js Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
const cliUtils = require('../src/CliUtils');
const test = require('tape');
test('Output directory is correctly generated',function(t){
cliUtils.makedir('./output/',function(){
require('fs').access('./output/.',function(err){
t.true(!err,"Access the created dir")
t.end()
});
});
});