docpress
Version:
Documentation website generator
30 lines (23 loc) • 572 B
JavaScript
const docpress = require('../bin/docpress')
const fixture = require('./support/fixture')
describe('docpress', function () {
const fx = fixture('basic')
let app
before(function () {
app = docpress(fx.path())
})
before(function (next) {
app.build((err) => {
if (err) throw err
next()
})
})
it('works', function () {
expect(fx.exists('_docpress'))
expect(fx.exists('_docpress/index.html'))
})
it('loads default plugins', function () {
expect(app.metadata().plugins).toEqual(expect.any(Object))
})
})