mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
11 lines
322 B
JavaScript
Executable File
11 lines
322 B
JavaScript
Executable File
const { run } = require('../helpers');
|
|
|
|
describe('Default behavior', () => {
|
|
it('suggests the closest match to an unknown command', () => {
|
|
const { output, status } = run(['upgraed']);
|
|
const stdout = output.toString();
|
|
expect(stdout).toContain('Did you mean upgrade?');
|
|
expect(status).toBe(1);
|
|
});
|
|
});
|