UNPKG

apeman-doc

Version:
26 lines (22 loc) 599 B
/** * Test case for apemanDoc. * Runs with mocha. */ 'use strict' const apemanDoc = require('../lib/apeman_doc.js') const assert = require('assert') let tmplDir = `${__dirname}/../tmp` describe('apeman-doc', () => { it('Generate apemanfile doc.', (done) => { apemanDoc({ out: `${tmplDir}/foo/bar/baz/testing-apeman-doc.md`, configuration: require.resolve('../misc/mocks/mock-Apemanfile.js'), ctx: require.resolve('../misc/mocks/mock-context.json') }) .then( () => done(), (err) => assert.ifError(err) ) }) }) /* global describe, it */