mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
test: bin: coverage
This commit is contained in:
parent
6c7709be9c
commit
7e2d2ede98
2 changed files with 11 additions and 1 deletions
|
|
@ -15,3 +15,13 @@ test('cloudcmd: bin: cli: -h', (t) => {
|
|||
t.match(stdout, `Options`);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: bin: cli: -v', (t) => {
|
||||
const {version} = info;
|
||||
const {stdout} = spawnSync(cliPath, ['-v'], {
|
||||
encoding: 'utf8',
|
||||
});
|
||||
|
||||
t.match(stdout, `v${version}`);
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue