mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-14 04:08:16 +00:00
18 lines
691 B
TypeScript
18 lines
691 B
TypeScript
import { describe, expect, test } from 'bun:test'
|
|
import { runCli } from '../helpers/run-cli'
|
|
|
|
describe('help command', () => {
|
|
test('prints detailed help for install', async () => {
|
|
const result = await runCli(['help', 'install'])
|
|
expect(result.exitCode).toBe(0)
|
|
expect(result.stdout).toContain('Usage: skillhub install <slug>')
|
|
expect(result.stdout).toContain('--agent <profile>')
|
|
})
|
|
|
|
test('prints search help with optional query', async () => {
|
|
const result = await runCli(['help', 'search'])
|
|
expect(result.exitCode).toBe(0)
|
|
expect(result.stdout).toContain('Usage: skillhub search [query]')
|
|
expect(result.stdout).toContain('skillhub search')
|
|
})
|
|
})
|