Skip to content

Commit

Permalink
Use config template for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Dec 27, 2018
1 parent b593c1a commit 5a8ff1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/block/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class FunctionBlock extends Block
let params = this.match();

let doc = new Doc('Undocumented function');
doc.template = Config.instance.get('functionTemplate');
let argString = this.getEnclosed(params[6], "(", ")");
let head:string;

Expand Down
1 change: 1 addition & 0 deletions test/functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ suite("Function tests", () => {
let actual:Doc = func.parse();
let expected:Doc = new Doc('Undocumented function');
expected.fromObject(testData.result);
expected.template = Helper.getConfig().get('functionTemplate');
assert.deepEqual(actual, expected);
});
});
Expand Down

0 comments on commit 5a8ff1e

Please sign in to comment.