Skip to content

Commit

Permalink
extra teest
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 24, 2024
1 parent cd0b1ef commit 0e7f5cb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/commands/test_dataize.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,30 @@ describe('dataize', function() {
done();
});
});

it(`dataizes with command-line argument`, function(done) {
this.timeout(0);
const home = path.resolve('temp/test-dataize-with-arg');
fs.rmSync(home, {recursive: true, force: true});
fs.mkdirSync(home, {recursive: true});
fs.writeFileSync(
path.resolve(home, 'simple.eo'),
[
'# sample',
'[args] > simple',
' QQ.io.stdout (args.at 0) > @',
].join('\n')
);
const stdout = runSync([
'dataize', 'simple',
'--clean',
`--parser=${parserVersion}`,
`--home-tag=${homeTag}`,
'-s', home,
'-t', path.resolve(home, 'target'),
'Hooray'
]);
assert(stdout.includes('Hooray'), stdout);
done();
});
});

0 comments on commit 0e7f5cb

Please sign in to comment.