Skip to content

Commit

Permalink
split test into unit and integration
Browse files Browse the repository at this point in the history
provide some dummy tests cases
  • Loading branch information
devtonhere committed Feb 20, 2019
1 parent 6364c2c commit 131b43d
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/fixtures/simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Heading

[another page](other.md)

## II 1

### III 1

#### IV 1

##### V 1


## II 2

### III 2

#### IV 2
16 changes: 16 additions & 0 deletions test/fixtures/simple/other-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Other

## two 1

### three 1

#### four 1

##### five 1


## two 2

### three 2

#### four 2
13 changes: 13 additions & 0 deletions test/integration/render.js
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions test/integration/router.js
Original file line number Diff line number Diff line change
@@ -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'
})

})
File renamed without changes.

0 comments on commit 131b43d

Please sign in to comment.