mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
test: update test case for default behavior
This commit is contained in:
parent
8d827804d5
commit
b8d4bc2543
@ -2,9 +2,11 @@ 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?');
|
||||
const { status, stderr, stdout } = run(['upgraed']);
|
||||
|
||||
// Assertions
|
||||
expect(stderr.toString()).toContain('Invalid command: upgraed.');
|
||||
expect(stdout.toString()).toContain('Did you mean upgrade?');
|
||||
expect(status).toBe(1);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user