diff --git a/core/lib/pseudopattern_hunter.js b/core/lib/pseudopattern_hunter.js index eb8753be2..2b799f2f3 100644 --- a/core/lib/pseudopattern_hunter.js +++ b/core/lib/pseudopattern_hunter.js @@ -54,7 +54,7 @@ var pseudopattern_hunter = function () { // use the same template engine as the non-variant engine: currentPattern.engine - }); + }, patternlab); //process the companion markdown file if it exists pattern_assembler.parse_pattern_markdown(patternVariant, patternlab); diff --git a/test/pseudopattern_hunter_tests.js b/test/pseudopattern_hunter_tests.js index f428172ce..dd2d4c4c2 100644 --- a/test/pseudopattern_hunter_tests.js +++ b/test/pseudopattern_hunter_tests.js @@ -1,5 +1,6 @@ "use strict"; +var path = require('path'); var pha = require('../core/lib/pseudopattern_hunter'); var pa = require('../core/lib/pattern_assembler'); var Pattern = require('../core/lib/object_factory').Pattern; @@ -44,6 +45,7 @@ exports['pseudopattern_hunter'] = { test.equals(pl.patterns[1].patternPartial, 'test-styled-atom-alt'); test.equals(pl.patterns[1].extendedTemplate.replace(/\s\s+/g, ' ').replace(/\n/g, ' ').trim(), ' {{message}} '); test.equals(JSON.stringify(pl.patterns[1].jsonFileData), JSON.stringify({"message": "alternateMessage"})); + test.equals(pl.patterns[1].patternLink, '00-test-03-styled-atom-alt' + path.sep + '00-test-03-styled-atom-alt.html'); test.done(); }