mirror of https://github.com/IoTcat/docsify.git
commit
c1d4961a64
9 changed files with 135 additions and 61 deletions
@ -0,0 +1,6 @@ |
||||
<!-- |
||||
|
||||
create your own fixture directory |
||||
if you need a custom README.md or sidebar |
||||
|
||||
--> |
@ -0,0 +1,18 @@ |
||||
# Heading |
||||
|
||||
[another page](other.md) |
||||
|
||||
## II 1 |
||||
|
||||
### III 1 |
||||
|
||||
#### IV 1 |
||||
|
||||
##### V 1 |
||||
|
||||
|
||||
## II 2 |
||||
|
||||
### III 2 |
||||
|
||||
#### IV 2 |
@ -0,0 +1,16 @@ |
||||
# Other |
||||
|
||||
## two 1 |
||||
|
||||
### three 1 |
||||
|
||||
#### four 1 |
||||
|
||||
##### five 1 |
||||
|
||||
|
||||
## two 2 |
||||
|
||||
### three 2 |
||||
|
||||
#### four 2 |
@ -0,0 +1,14 @@ |
||||
const path = require('path') |
||||
|
||||
const {expect} = require('chai') |
||||
|
||||
const {init, expectSameDom} = require('../_helper') |
||||
|
||||
describe('full docsify initialization', function() { |
||||
it('TODO: check generated markup', async function() { |
||||
const {docsify, dom} = await init('simple', {loadSidebar: true}) |
||||
console.log(dom.window.document.body.innerHTML) |
||||
// TODO: add some expectations
|
||||
}) |
||||
|
||||
}) |
@ -0,0 +1,14 @@ |
||||
const path = require('path') |
||||
|
||||
const {expect} = require('chai') |
||||
|
||||
const {init, expectSameDom} = require('../_helper') |
||||
|
||||
describe('router', function() { |
||||
it('TODO: trigger to load another page', async function() { |
||||
const {docsify} = await init() |
||||
window.location = '/?foo=bar' |
||||
// TODO: add some expectations
|
||||
}) |
||||
|
||||
}) |
Loading…
Reference in new issue