Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ test('cli lists built-in fixtures as json', () => {
assert.ok(fixtures.some((fixture) => fixture.name === 'interruption_timing'));
});

test('cli help documents non-recording local commands', () => {
const result = runCli(['--help']);
assert.equal(result.status, 0, result.stderr);
assert.match(result.stdout, /Usage:/);
assert.match(result.stdout, /bargekit fixtures/);
assert.match(result.stdout, /bargekit tune/);
assert.match(result.stdout, /No command records audio/);
});

test('cli smokes a checked-in fixture file', () => {
const result = runCli(['smoke', '--fixture', 'tests/fixtures/interruption_timing.json', '--json']);
assert.equal(result.status, 0, result.stderr);
Expand Down
Loading