Skip to content

Commit 0907bab

Browse files
author
Josef Bredereck
committed
Updated tests since pattern folder name has to be the pattern name
1 parent b4efba4 commit 0907bab

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/core/test/object_factory_tests.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tap.test('test Pattern initializes correctly', function(test) {
6666
tap.test(
6767
'test Pattern initializes correctly with pattern in sepatated directory',
6868
function(test) {
69-
var p = new Pattern('00-atoms/00-global/00-colors/colors.mustache', {
69+
var p = new Pattern('00-atoms/00-global/00-colors/00-colors.mustache', {
7070
d: 123,
7171
});
7272
test.equals(
@@ -77,14 +77,14 @@ tap.test(
7777
path.sep +
7878
'00-colors' +
7979
path.sep +
80-
'colors.mustache'
80+
'00-colors.mustache'
8181
);
8282
test.equals(p.name, '00-atoms-00-global-00-colors');
8383
test.equals(
8484
p.subdir,
8585
'00-atoms' + path.sep + '00-global' + path.sep + '00-colors'
8686
);
87-
test.equals(p.fileName, 'colors');
87+
test.equals(p.fileName, '00-colors');
8888
test.equals(p.fileExtension, '.mustache');
8989
test.equals(p.jsonFileData.d, 123);
9090
test.equals(p.patternBaseName, 'colors');
@@ -111,11 +111,14 @@ tap.test(
111111
);
112112

113113
tap.test('test Pattern name for variants correctly initialzed', function(test) {
114-
var p1 = new Pattern('00-atoms/00-global/00-colors/colors~variant.mustache', {
115-
d: 123,
116-
});
114+
var p1 = new Pattern(
115+
'00-atoms/00-global/00-colors/00-colors~variant.mustache',
116+
{
117+
d: 123,
118+
}
119+
);
117120
var p2 = new Pattern(
118-
'00-atoms/00-global/00-colors/colors~variant-minus.json',
121+
'00-atoms/00-global/00-colors/00-colors~variant-minus.json',
119122
{ d: 123 }
120123
);
121124
test.equals(p1.name, '00-atoms-00-global-00-colors-variant');

0 commit comments

Comments
 (0)