apeman-demo-tmpl
Version:
Demo of tmpl project.
31 lines (25 loc) • 583 B
JavaScript
/**
* Test case for load.
* Runs with mocha.
*/
const load = require('../lib/load.js')
const coz = require('coz')
const co = require('co')
const assert = require('assert')
describe('load', () => {
before(() => co(function * () {
}))
after(() => co(function * () {
}))
it('Load', () => co(function * () {
let bud = load({}, '444', true)
assert.ok(bud)
assert.ok(bud.tmpl)
bud.mkdirp = true
bud.force = true
bud.path = `${__dirname}/../tmp/rendered.txt`
yield coz.render(bud)
}))
})
/* global describe, before, after, it */