split test into unit and integration
provide some dummy tests cases
This commit is contained in:
parent
01ea44106b
commit
dac0bfec6c
6 changed files with 62 additions and 2 deletions
13
test/integration/render.js
Normal file
13
test/integration/render.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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)
|
||||
})
|
||||
|
||||
})
|
||||
13
test/integration/router.js
Normal file
13
test/integration/router.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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'
|
||||
})
|
||||
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue