Skip to content

Commit 3ac229d

Browse files
committed
fix unit tests for #597
1 parent 419373e commit 3ac229d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/ui_builder_tests.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var eol = require('os').EOL;
77
var Pattern = require('../core/lib/object_factory').Pattern;
88
var extend = require('util')._extend;
99
var uiModule = rewire('../core/lib/ui_builder');
10+
var path = require('path');
1011

1112
//set up a global mocks - we don't want to be writing/rendering any files right now
1213
var fsMock = {
@@ -80,7 +81,7 @@ tap.test('isPatternExcluded - returns true when pattern within underscored direc
8081
//arrange
8182
var patternlab = createFakePatternLab({});
8283
var pattern = Pattern.createEmpty({
83-
relPath: '_hidden/patternsubtype/foo.mustache',
84+
relPath: path.sep + '_hidden' + path.sep + 'patternsubtype' + path.sep + 'foo.mustache',
8485
isPattern: true,
8586
fileName : 'foo.mustache',
8687
patternPartial: 'hidden-foo'
@@ -98,7 +99,7 @@ tap.test('isPatternExcluded - returns true when pattern within underscored direc
9899
//arrange
99100
var patternlab = createFakePatternLab({});
100101
var pattern = Pattern.createEmpty({
101-
relPath: 'shown/_patternsubtype/foo.mustache',
102+
relPath: 'shown' + path.sep + '_patternsubtype' + path.sep + 'foo.mustache',
102103
isPattern: true,
103104
fileName : 'foo.mustache',
104105
patternPartial: 'shown-foo'

0 commit comments

Comments
 (0)