Skip to content

Commit

Permalink
fix: generate snapshot for default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Dec 22, 2019
1 parent e9b7650 commit 3ebfd82
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ const test = require('ava');
const rootCommand = path.join(process.cwd(), 'bin/docsify');

test('shows up help message without any args', async t => {
const { stdout } = await execa(rootCommand, {reject: false});
t.snapshot(stdout);
const { stderr } = await execa(rootCommand, {reject: false});
t.snapshot(stderr)
});
20 changes: 19 additions & 1 deletion e2e/index.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,22 @@ Generated by [AVA](https://ava.li).

> Snapshot 1
''
`Usage: docsify <init|serve> <path>␊
Commands:␊
docsify init [path] Creates new docs␊
docsify serve [path] Run local server to preview site.␊
docsify start <path> Server for SSR␊
Global Options␊
--help, -h Show help [boolean]␊
--version, -v Show version number [boolean]␊
Documentation:␊
https://docsifyjs.github.io/docsify␊
https://docsifyjs.github.io/docsify-cli␊
Development:␊
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
[ERROR] 0 arguments passed. Please specify a command`
Binary file modified e2e/index.js.snap
Binary file not shown.

0 comments on commit 3ebfd82

Please sign in to comment.