Skip to content

Commit 6831e2e

Browse files
committed
Updated fixture.
1 parent 579b1d0 commit 6831e2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/fixtures/plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ const path = require('path');
44
const Handlebars = require('handlebars');
55

66
/**
7-
* Test plugin for doxdox.
7+
* Custom Handlebars template plugin for doxdox.
88
*
9-
* @example parseInputs(inputs, {'parser': 'dox', 'layout': 'plugins.js'}).then(content => console.log(content));
9+
* @example parseInputs(inputs, {'parser': 'dox', 'layout': 'template.hbs'}).then(content => console.log(content));
1010
* @param {Array} data Methods parsed using a doxdox parser.
1111
* @return {Promise} Promise with generated content.
1212
* @public
1313
*/
1414

1515
const plugin = data => new Promise((resolve, reject) => {
1616

17-
fs.readFile(path.join(__dirname, 'template.hbs'), 'utf8', (err, contents) => {
17+
fs.readFile(path.join(process.cwd(), data.layout), 'utf8', (err, contents) => {
1818

1919
if (err) {
2020

0 commit comments

Comments
 (0)