Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 5dd8052

Browse files
committed
fix up some unit tests for the pattern engines branch, wherein we
require oPattern objects to have their prototype
1 parent 7b0a44c commit 5dd8052

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

test/lineage_hunter_tests.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
105105

106106
'find_lineage - finds lineage with spaced pattern parameters' : function(test){
107107
//setup current pattern from what we would have during execution
108-
var currentPattern = createFakeEmptyErrorPattern();
109-
extend(currentPattern, {
108+
var currentPattern = createFakeEmptyErrorPattern();
109+
extend(currentPattern, {
110110
"template": "{{> atoms-error(message: 'That\\'s no moon...') }}",
111111
"patternPartial": "{{> atoms-error(message: 'That\\'s no moon...') }}"
112-
});
112+
});
113113

114114
var patternlab = {
115115
patterns: [
@@ -137,8 +137,8 @@
137137

138138
'find_lineage - finds lineage with unspaced pattern parameters' : function(test){
139139
//setup current pattern from what we would have during execution
140-
var currentPattern = createFakeEmptyErrorPattern();
141-
extend(currentPattern, {
140+
var currentPattern = createFakeEmptyErrorPattern();
141+
extend(currentPattern, {
142142
"template": "{{>atoms-error(message: 'That\\'s no moon...')}}",
143143
"patternPartial": "{{>atoms-error(message: 'That\\'s no moon...')}}"
144144
});
@@ -180,7 +180,7 @@
180180

181181
'find_lineage - finds lineage with spaced styleModifier' : function(test){
182182
//setup current pattern from what we would have during execution
183-
var currentPattern = {
183+
var currentPattern = of.oPattern.createEmpty({
184184
"name": "01-molecules-01-toast-00-error",
185185
"subdir": "01-molecules\\01-toast",
186186
"filename": "00-error.mustache",
@@ -198,10 +198,10 @@
198198
"lineageIndex": [],
199199
"lineageR": [],
200200
"lineageRIndex": []
201-
};
201+
});
202202
var patternlab = {
203203
patterns: [
204-
{
204+
of.oPattern.createEmpty({
205205
"name": "01-atoms-05-alerts-00-error",
206206
"subdir": "01-atoms\\05-alerts",
207207
"filename": "00-error.mustache",
@@ -219,7 +219,7 @@
219219
"lineageIndex": [],
220220
"lineageR": [],
221221
"lineageRIndex": []
222-
}
222+
})
223223
]
224224
};
225225

@@ -234,7 +234,7 @@
234234

235235
'find_lineage - finds lineage with unspaced styleModifier' : function(test){
236236
//setup current pattern from what we would have during execution
237-
var currentPattern = {
237+
var currentPattern = of.oPattern.createEmpty({
238238
"name": "01-molecules-01-toast-00-error",
239239
"subdir": "01-molecules\\01-toast",
240240
"filename": "00-error.mustache",
@@ -252,10 +252,10 @@
252252
"lineageIndex": [],
253253
"lineageR": [],
254254
"lineageRIndex": []
255-
};
255+
});
256256
var patternlab = {
257257
patterns: [
258-
{
258+
of.oPattern.createEmpty({
259259
"name": "01-atoms-05-alerts-00-error",
260260
"subdir": "01-atoms\\05-alerts",
261261
"filename": "00-error.mustache",
@@ -273,7 +273,7 @@
273273
"lineageIndex": [],
274274
"lineageR": [],
275275
"lineageRIndex": []
276-
}
276+
})
277277
]
278278
};
279279

@@ -288,7 +288,7 @@
288288

289289
'find_lineage - finds lineage with fuzzy partial with styleModifier' : function(test){
290290
//setup current pattern from what we would have during execution
291-
var currentPattern = {
291+
var currentPattern = of.oPattern.createEmpty({
292292
"name": "01-molecules-01-toast-00-error",
293293
"subdir": "01-molecules\\01-toast",
294294
"filename": "00-error.mustache",
@@ -306,10 +306,10 @@
306306
"lineageIndex": [],
307307
"lineageR": [],
308308
"lineageRIndex": []
309-
};
309+
});
310310
var patternlab = {
311311
patterns: [
312-
{
312+
of.oPattern.createEmpty({
313313
"name": "01-atoms-05-alerts-00-error",
314314
"subdir": "01-atoms\\05-alerts",
315315
"filename": "00-error.mustache",
@@ -327,7 +327,7 @@
327327
"lineageIndex": [],
328328
"lineageR": [],
329329
"lineageRIndex": []
330-
}
330+
})
331331
]
332332
};
333333

0 commit comments

Comments
 (0)