mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 20:00:05 +01:00
* 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:
committed by
Jeffrey Warren
parent
c5dee8aef3
commit
32c5a29906
13
test/cli.js
Normal file
13
test/cli.js
Normal 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()
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user