mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +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
14 lines
347 B
JavaScript
14 lines
347 B
JavaScript
'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()
|
|
});
|
|
});
|
|
});
|