@@ -79,7 +79,7 @@ tap.test(
79
79
path . sep +
80
80
'colors.mustache'
81
81
) ;
82
- test . equals ( p . name , '00-atoms-00-global-00- colors' ) ;
82
+ test . equals ( p . name , '00-atoms-00-global-colors' ) ;
83
83
test . equals ( p . subdir , path . join ( '00-atoms' , '00-global' , '00-colors' ) ) ;
84
84
test . equals ( p . fileName , 'colors' ) ;
85
85
test . equals ( p . fileExtension , '.mustache' ) ;
@@ -88,9 +88,9 @@ tap.test(
88
88
test . equals ( p . patternName , 'Colors' ) ;
89
89
test . equals (
90
90
p . getPatternLink ( pl ) ,
91
- '00-atoms-00-global-00- colors' +
91
+ '00-atoms-00-global-colors' +
92
92
path . sep +
93
- '00-atoms-00-global-00- colors.rendered.html'
93
+ '00-atoms-00-global-colors.rendered.html'
94
94
) ;
95
95
test . equals ( p . patternGroup , 'atoms' ) ;
96
96
test . equals ( p . patternSubGroup , 'global' ) ;
@@ -117,8 +117,8 @@ tap.test('test Pattern name for variants correctly initialzed', function(test) {
117
117
d : 123 ,
118
118
}
119
119
) ;
120
- test . equals ( p1 . name , '00-atoms-00-global-00- colors-variant' ) ;
121
- test . equals ( p2 . name , '00-atoms-00-global-00- colors-variant-minus' ) ;
120
+ test . equals ( p1 . name , '00-atoms-00-global-colors-variant' ) ;
121
+ test . equals ( p2 . name , '00-atoms-00-global-colors-variant-minus' ) ;
122
122
test . end ( ) ;
123
123
} ) ;
124
124
@@ -153,10 +153,10 @@ tap.test('test Pattern with own-directory gets resetted as expected', function(
153
153
test
154
154
) {
155
155
var p = new Pattern ( '00-atoms/00-button/button.mustache' , { d : 123 } , pl ) ;
156
- p . promoteFromFlatPatternToDirectory ( pl ) ;
156
+ p . promoteFromDirectoryToFlatPattern ( pl ) ;
157
157
158
158
test . equals ( p . relPath , path . join ( '00-atoms' , '00-button' , 'button.mustache' ) ) ;
159
- test . equals ( p . name , '00-atoms-00-button-button ' ) ;
159
+ test . equals ( p . name , '00-atoms-00-button' ) ;
160
160
test . equals ( p . subdir , path . join ( '00-atoms' , '00-button' ) ) ;
161
161
test . equals ( p . fileName , 'button' ) ;
162
162
test . equals ( p . fileExtension , '.mustache' ) ;
@@ -165,13 +165,10 @@ tap.test('test Pattern with own-directory gets resetted as expected', function(
165
165
test . equals ( p . patternName , 'Button' ) ;
166
166
test . equals (
167
167
p . getPatternLink ( pl ) ,
168
- path . join (
169
- '00-atoms-00-button-button' ,
170
- '00-atoms-00-button-button.rendered.html'
171
- )
168
+ path . join ( '00-atoms-00-button' , '00-atoms-00-button.rendered.html' )
172
169
) ;
173
170
test . equals ( p . patternGroup , 'atoms' ) ;
174
- test . equals ( p . flatPatternPath , '00-atoms-00-button ' ) ;
171
+ test . equals ( p . flatPatternPath , '00-atoms' ) ;
175
172
test . equals ( p . patternPartial , 'atoms-button' ) ;
176
173
test . equals ( p . template , '' ) ;
177
174
test . equals ( p . lineage . length , 0 ) ;
@@ -255,7 +252,7 @@ tap.test(
255
252
'00-atoms/00-global/00-colors-alt/colors-alt~variant.mustache' ,
256
253
{ d : 123 }
257
254
) ;
258
- test . equals ( p . name , '00-atoms-00-global-00- colors-alt-variant' ) ;
255
+ test . equals ( p . name , '00-atoms-00-global-colors-alt-variant' ) ;
259
256
test . equals ( p . flatPatternPath , '00-atoms-00-global' ) ;
260
257
test . equals ( p . patternBaseName , 'colors-alt-variant' ) ;
261
258
@@ -295,7 +292,7 @@ tap.test('test Patterns that are nested deeper without own directory', function(
295
292
'00-atoms/00-global/00-random-folder/00-another-folder/00-colors-alt/colors-alt.mustache' ,
296
293
{ d : 123 }
297
294
) ;
298
- test . equals ( p . name , '00-atoms-00-global-00- colors-alt' ) ;
295
+ test . equals ( p . name , '00-atoms-00-global-colors-alt' ) ;
299
296
test . equals ( p . flatPatternPath , '00-atoms-00-global' ) ;
300
297
301
298
var p = new Pattern (
0 commit comments