File tree 6 files changed +62
-2
lines changed
6 files changed +62
-2
lines changed Original file line number Diff line number Diff line change 27
27
"dev" : " run-p serve watch:*" ,
28
28
"dev:ssr" : " run-p serve:ssr watch:*" ,
29
29
"lint" : " eslint {src,packages} --fix" ,
30
- "test" : " mocha" ,
30
+ "test" : " mocha test/*/** " ,
31
31
"css" : " stylus src/themes/*.styl -u autoprefixer-stylus" ,
32
32
"watch:css" : " run-p 'css -- -o themes -w'" ,
33
33
"watch:js" : " node build/build.js" ,
Original file line number Diff line number Diff line change
1
+ # Heading
2
+
3
+ [ another page] ( other.md )
4
+
5
+ ## II 1
6
+
7
+ ### III 1
8
+
9
+ #### IV 1
10
+
11
+ ##### V 1
12
+
13
+
14
+ ## II 2
15
+
16
+ ### III 2
17
+
18
+ #### IV 2
Original file line number Diff line number Diff line change
1
+ # Other
2
+
3
+ ## two 1
4
+
5
+ ### three 1
6
+
7
+ #### four 1
8
+
9
+ ##### five 1
10
+
11
+
12
+ ## two 2
13
+
14
+ ### three 2
15
+
16
+ #### four 2
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
2
+
3
+ const { expect} = require ( 'chai' )
4
+
5
+ const { init, expectSameDom} = require ( '../_helper' )
6
+
7
+ describe ( 'full docsify initialization' , function ( ) {
8
+ it ( 'TODO: check generated markup' , async function ( ) {
9
+ const { docsify, dom} = await init ( 'simple' , { loadSidebar : true } )
10
+ console . log ( dom . window . document . body . innerHTML )
11
+ } )
12
+
13
+ } )
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
2
+
3
+ const { expect} = require ( 'chai' )
4
+
5
+ const { init, expectSameDom} = require ( '../_helper' )
6
+
7
+ describe ( 'router' , function ( ) {
8
+ it ( 'TODO: trigger to load another page' , async function ( ) {
9
+ const { docsify} = await init ( )
10
+ window . location = '/?foo=bar'
11
+ } )
12
+
13
+ } )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const path = require('path')
2
2
3
3
const { expect} = require ( 'chai' )
4
4
5
- const { init, expectSameDom} = require ( './_helper' )
5
+ const { init, expectSameDom} = require ( '.. /_helper' )
6
6
7
7
describe ( 'render' , function ( ) {
8
8
it ( 'important content (tips)' , async function ( ) {
You can’t perform that action at this time.
0 commit comments