Skip to content

Commit 3ebfd82

Browse files
fix: generate snapshot for default behavior
1 parent e9b7650 commit 3ebfd82

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

e2e/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ const test = require('ava');
77
const rootCommand = path.join(process.cwd(), 'bin/docsify');
88

99
test('shows up help message without any args', async t => {
10-
const { stdout } = await execa(rootCommand, {reject: false});
11-
t.snapshot(stdout);
10+
const { stderr } = await execa(rootCommand, {reject: false});
11+
t.snapshot(stderr)
1212
});

e2e/index.js.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,22 @@ Generated by [AVA](https://ava.li).
88

99
> Snapshot 1
1010
11-
''
11+
`Usage: docsify <init|serve> <path>␊
12+
13+
Commands:␊
14+
docsify init [path] Creates new docs␊
15+
docsify serve [path] Run local server to preview site.␊
16+
docsify start <path> Server for SSR␊
17+
18+
Global Options␊
19+
--help, -h Show help [boolean]␊
20+
--version, -v Show version number [boolean]␊
21+
22+
Documentation:␊
23+
https://docsifyjs.github.io/docsify␊
24+
https://docsifyjs.github.io/docsify-cli␊
25+
26+
Development:␊
27+
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
28+
29+
[ERROR] 0 arguments passed. Please specify a command`

e2e/index.js.snap

310 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)