mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
test: test case for default behavior
This commit is contained in:
parent
c39fc1df3e
commit
5bff2c6221
10
lib/cli/test/cli.test.js
Executable file
10
lib/cli/test/cli.test.js
Executable file
@ -0,0 +1,10 @@
|
||||
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);
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user