|
105 | 105 |
|
106 | 106 | 'find_lineage - finds lineage with spaced pattern parameters' : function(test){
|
107 | 107 | //setup current pattern from what we would have during execution
|
108 |
| - var currentPattern = createFakeEmptyErrorPattern(); |
109 |
| - extend(currentPattern, { |
| 108 | + var currentPattern = createFakeEmptyErrorPattern(); |
| 109 | + extend(currentPattern, { |
110 | 110 | "template": "{{> atoms-error(message: 'That\\'s no moon...') }}",
|
111 | 111 | "patternPartial": "{{> atoms-error(message: 'That\\'s no moon...') }}"
|
112 |
| - }); |
| 112 | + }); |
113 | 113 |
|
114 | 114 | var patternlab = {
|
115 | 115 | patterns: [
|
|
137 | 137 |
|
138 | 138 | 'find_lineage - finds lineage with unspaced pattern parameters' : function(test){
|
139 | 139 | //setup current pattern from what we would have during execution
|
140 |
| - var currentPattern = createFakeEmptyErrorPattern(); |
141 |
| - extend(currentPattern, { |
| 140 | + var currentPattern = createFakeEmptyErrorPattern(); |
| 141 | + extend(currentPattern, { |
142 | 142 | "template": "{{>atoms-error(message: 'That\\'s no moon...')}}",
|
143 | 143 | "patternPartial": "{{>atoms-error(message: 'That\\'s no moon...')}}"
|
144 | 144 | });
|
|
180 | 180 |
|
181 | 181 | 'find_lineage - finds lineage with spaced styleModifier' : function(test){
|
182 | 182 | //setup current pattern from what we would have during execution
|
183 |
| - var currentPattern = { |
| 183 | + var currentPattern = of.oPattern.createEmpty({ |
184 | 184 | "name": "01-molecules-01-toast-00-error",
|
185 | 185 | "subdir": "01-molecules\\01-toast",
|
186 | 186 | "filename": "00-error.mustache",
|
|
198 | 198 | "lineageIndex": [],
|
199 | 199 | "lineageR": [],
|
200 | 200 | "lineageRIndex": []
|
201 |
| - }; |
| 201 | + }); |
202 | 202 | var patternlab = {
|
203 | 203 | patterns: [
|
204 |
| - { |
| 204 | + of.oPattern.createEmpty({ |
205 | 205 | "name": "01-atoms-05-alerts-00-error",
|
206 | 206 | "subdir": "01-atoms\\05-alerts",
|
207 | 207 | "filename": "00-error.mustache",
|
|
219 | 219 | "lineageIndex": [],
|
220 | 220 | "lineageR": [],
|
221 | 221 | "lineageRIndex": []
|
222 |
| - } |
| 222 | + }) |
223 | 223 | ]
|
224 | 224 | };
|
225 | 225 |
|
|
234 | 234 |
|
235 | 235 | 'find_lineage - finds lineage with unspaced styleModifier' : function(test){
|
236 | 236 | //setup current pattern from what we would have during execution
|
237 |
| - var currentPattern = { |
| 237 | + var currentPattern = of.oPattern.createEmpty({ |
238 | 238 | "name": "01-molecules-01-toast-00-error",
|
239 | 239 | "subdir": "01-molecules\\01-toast",
|
240 | 240 | "filename": "00-error.mustache",
|
|
252 | 252 | "lineageIndex": [],
|
253 | 253 | "lineageR": [],
|
254 | 254 | "lineageRIndex": []
|
255 |
| - }; |
| 255 | + }); |
256 | 256 | var patternlab = {
|
257 | 257 | patterns: [
|
258 |
| - { |
| 258 | + of.oPattern.createEmpty({ |
259 | 259 | "name": "01-atoms-05-alerts-00-error",
|
260 | 260 | "subdir": "01-atoms\\05-alerts",
|
261 | 261 | "filename": "00-error.mustache",
|
|
273 | 273 | "lineageIndex": [],
|
274 | 274 | "lineageR": [],
|
275 | 275 | "lineageRIndex": []
|
276 |
| - } |
| 276 | + }) |
277 | 277 | ]
|
278 | 278 | };
|
279 | 279 |
|
|
288 | 288 |
|
289 | 289 | 'find_lineage - finds lineage with fuzzy partial with styleModifier' : function(test){
|
290 | 290 | //setup current pattern from what we would have during execution
|
291 |
| - var currentPattern = { |
| 291 | + var currentPattern = of.oPattern.createEmpty({ |
292 | 292 | "name": "01-molecules-01-toast-00-error",
|
293 | 293 | "subdir": "01-molecules\\01-toast",
|
294 | 294 | "filename": "00-error.mustache",
|
|
306 | 306 | "lineageIndex": [],
|
307 | 307 | "lineageR": [],
|
308 | 308 | "lineageRIndex": []
|
309 |
| - }; |
| 309 | + }); |
310 | 310 | var patternlab = {
|
311 | 311 | patterns: [
|
312 |
| - { |
| 312 | + of.oPattern.createEmpty({ |
313 | 313 | "name": "01-atoms-05-alerts-00-error",
|
314 | 314 | "subdir": "01-atoms\\05-alerts",
|
315 | 315 | "filename": "00-error.mustache",
|
|
327 | 327 | "lineageIndex": [],
|
328 | 328 | "lineageR": [],
|
329 | 329 | "lineageRIndex": []
|
330 |
| - } |
| 330 | + }) |
331 | 331 | ]
|
332 | 332 | };
|
333 | 333 |
|
|
0 commit comments