Skip to content

Commit 8c0fa90

Browse files
committed
Update tests to reflect changes to object_factory
1 parent 4eb79ab commit 8c0fa90

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

packages/core/test/object_factory_tests.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ tap.test('test Pattern capitalizes patternDisplayName correctly', function(
178178
test.end();
179179
});
180180

181-
tap.test('test Pattern get dir level no sepatated pattern directory', function(
181+
tap.test('test Pattern get dir level no separated pattern directory', function(
182182
test
183183
) {
184184
var p = new Pattern('00-atoms/00-global/00-colors-alt.mustache', { d: 123 });
@@ -198,24 +198,36 @@ tap.test('test Pattern get dir level no sepatated pattern directory', function(
198198
});
199199

200200
tap.test(
201-
'test Pattern get dir level with sepatated pattern directory',
201+
'test Pattern get dir level with separated pattern directory',
202202
function(test) {
203203
var p = new Pattern(
204204
'00-atoms/00-global/00-colors-alt/colors-alt.mustache',
205205
{ d: 123 }
206206
);
207207
test.equals(p.getDirLevel(0, { hasDir: true, dirLevel: 3 }), '00-atoms');
208208
test.equals(p.getDirLevel(1, { hasDir: true, dirLevel: 3 }), '00-global');
209-
test.equals(p.getDirLevel(3, { hasDir: true, dirLevel: 3 }), '');
209+
test.equals(
210+
p.getDirLevel(3, { hasDir: true, dirLevel: 3 }),
211+
'00-colors-alt'
212+
);
210213
var p = new Pattern('00-atoms/00-colors-alt/colors-alt.mustache', {
211214
d: 123,
212215
});
213216
test.equals(p.getDirLevel(0, { hasDir: true, dirLevel: 2 }), '00-atoms');
214-
test.equals(p.getDirLevel(1, { hasDir: true, dirLevel: 2 }), '00-atoms');
217+
test.equals(
218+
p.getDirLevel(1, { hasDir: true, dirLevel: 2 }),
219+
'00-colors-alt'
220+
);
215221
test.equals(p.getDirLevel(3, { hasDir: true, dirLevel: 2 }), '');
216222
var p = new Pattern('00-colors-alt/colors-alt.mustache', { d: 123 });
217-
test.equals(p.getDirLevel(0, { hasDir: true, dirLevel: 1 }), '');
218-
test.equals(p.getDirLevel(1, { hasDir: true, dirLevel: 1 }), '');
223+
test.equals(
224+
p.getDirLevel(0, { hasDir: true, dirLevel: 1 }),
225+
'00-colors-alt'
226+
);
227+
test.equals(
228+
p.getDirLevel(1, { hasDir: true, dirLevel: 1 }),
229+
'00-colors-alt'
230+
);
219231
test.equals(p.getDirLevel(3, { hasDir: true, dirLevel: 1 }), '');
220232
test.end();
221233
}

0 commit comments

Comments
 (0)