mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
22 lines
638 B
TypeScript
22 lines
638 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { execFileSync } from 'node:child_process';
|
|
import path from 'node:path';
|
|
|
|
test('launcher root help lists subcommands', () => {
|
|
const output = execFileSync(
|
|
'bun',
|
|
['run', path.join(process.cwd(), 'launcher/main.ts'), '-h'],
|
|
{ encoding: 'utf8' },
|
|
);
|
|
|
|
assert.match(output, /Commands:/);
|
|
assert.match(output, /jellyfin\|jf/);
|
|
assert.match(output, /yt\|youtube/);
|
|
assert.match(output, /doctor/);
|
|
assert.match(output, /config/);
|
|
assert.match(output, /mpv/);
|
|
assert.match(output, /texthooker/);
|
|
assert.match(output, /app\|bin/);
|
|
});
|