Skip to content

Commit

Permalink
fix and cover pseudo-pattern 404s
Browse files Browse the repository at this point in the history
closes #458
  • Loading branch information
bmuenzenmeyer committed Aug 31, 2016
1 parent f340339 commit 5e90b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/pseudopattern_hunter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions test/pseudopattern_hunter_tests.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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(), '<span class="test_base {{styleModifier}}"> {{message}} </span>');
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();
}
Expand Down

0 comments on commit 5e90b80

Please # to comment.