mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 01:25:29 +08:00
19 lines
597 B
JavaScript
19 lines
597 B
JavaScript
const assert = require('node:assert/strict');
|
|
const { spawnSync } = require('node:child_process');
|
|
const path = require('node:path');
|
|
const { test } = require('node:test');
|
|
|
|
test('publishes bounded help without bootstrapping storage or a listener', () => {
|
|
const result = spawnSync(
|
|
process.execPath,
|
|
[path.resolve(__dirname, '../dist/cli.js'), '--help'],
|
|
{ encoding: 'utf8' },
|
|
);
|
|
assert.equal(result.status, 0);
|
|
assert.equal(result.stderr, '');
|
|
assert.equal(
|
|
result.stdout,
|
|
'Usage: ql3-local-api [--cutover-probe] --config /absolute/private-config.json\n',
|
|
);
|
|
});
|