UNPKG

apeman-demo-tmpl

Version:
31 lines (25 loc) 583 B
/** * Test case for load. * Runs with mocha. */ 'use strict' 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 */