test: bin: cloudcmd: -h

This commit is contained in:
coderiaser 2026-03-29 13:44:18 +03:00
parent aa5a772f00
commit 340a639f1b

17
bin/cloudcmd.spec.js Normal file
View file

@ -0,0 +1,17 @@
import {spawnSync} from 'node:child_process';
import {test} from 'supertape';
const cliPath = new URL('cloudcmd.js', import.meta.url).pathname;
import info from '../package.json' with {
type: 'json',
}
test('cloudcmd: bin: cli: -h', (t) => {
const {version} = info;
const {stdout} = spawnSync(cliPath, ['-h'], {
encoding: 'utf8',
});
t.match(stdout, `Options`);
t.end();
});