test: bin: coverage

This commit is contained in:
coderiaser 2026-03-29 17:00:43 +03:00
parent 6c7709be9c
commit 7e2d2ede98
2 changed files with 11 additions and 1 deletions

View file

@ -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();
});