Skip to content

Commit eaaa274

Browse files
committed
chore(core): fix tests
1 parent 9d725c5 commit eaaa274

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

packages/core/test/object_factory_tests.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,18 @@ tap.test(
8080
'colors.mustache'
8181
);
8282
test.equals(p.name, '00-atoms-00-global');
83-
test.equals(
84-
p.subdir,
85-
'00-atoms' + path.sep + '00-global'
86-
);
83+
test.equals(p.subdir, '00-atoms' + path.sep + '00-global');
8784
test.equals(p.fileName, 'colors');
8885
test.equals(p.fileExtension, '.mustache');
8986
test.equals(p.jsonFileData.d, 123);
9087
test.equals(p.patternBaseName, 'colors');
9188
test.equals(p.patternName, 'Colors');
9289
test.equals(
9390
p.getPatternLink(pl),
94-
'00-atoms-00-global' +
95-
path.sep +
96-
'00-atoms-00-global.rendered.html'
91+
'00-atoms-00-global' + path.sep + '00-atoms-00-global.rendered.html'
9792
);
9893
test.equals(p.patternGroup, 'atoms');
99-
test.equals(p.patternSubGroup, 'atoms'); //because of p.info.hasDir
94+
test.equals(p.patternSubGroup, 'global'); //because of p.info.hasDir
10095
test.equals(p.flatPatternPath, '00-atoms-00-global');
10196
test.equals(p.patternPartial, 'atoms-colors');
10297
test.equals(p.template, '');
@@ -114,10 +109,9 @@ tap.test('test Pattern name for variants correctly initialzed', function(test) {
114109
var p1 = new Pattern('00-atoms/00-global/colors~variant.mustache', {
115110
d: 123,
116111
});
117-
var p2 = new Pattern(
118-
'00-atoms/00-global/colors~variant-minus.json',
119-
{ d: 123 }
120-
);
112+
var p2 = new Pattern('00-atoms/00-global/colors~variant-minus.json', {
113+
d: 123,
114+
});
121115
test.equals(p1.name, '00-atoms-00-global-colors-variant');
122116
test.equals(p2.name, '00-atoms-00-global-colors-variant-minus');
123117
test.end();
@@ -205,7 +199,7 @@ tap.test(
205199
{ d: 123 }
206200
);
207201
test.equals(p.getDirLevel(0, { hasDir: true, dirLevel: 3 }), '00-atoms');
208-
test.equals(p.getDirLevel(1, { hasDir: true, dirLevel: 3 }), '00-atoms');
202+
test.equals(p.getDirLevel(1, { hasDir: true, dirLevel: 3 }), '00-global');
209203
test.equals(p.getDirLevel(3, { hasDir: true, dirLevel: 3 }), '');
210204
var p = new Pattern('00-atoms/00-colors-alt/colors-alt.mustache', {
211205
d: 123,

0 commit comments

Comments
 (0)