Norbert de Langen c2bbe43d02
stage0
2022-07-21 11:24:07 +02:00

13 lines
388 B
JavaScript
Executable File

const run = require('../helpers');
describe('Default behavior', () => {
it('suggests the closest match to an unknown command', () => {
const { status, stderr, stdout } = run(['upgraed']);
// Assertions
expect(status).toBe(1);
expect(stderr.toString()).toContain('Invalid command: upgraed.');
expect(stdout.toString()).toContain('Did you mean upgrade?');
});
});