@@ -79,7 +79,7 @@ tap.test(
7979 path . sep +
8080 'colors.mustache'
8181 ) ;
82- test . equals ( p . name , '00-atoms-00-global-00- colors' ) ;
82+ test . equals ( p . name , '00-atoms-00-global-colors' ) ;
8383 test . equals ( p . subdir , path . join ( '00-atoms' , '00-global' , '00-colors' ) ) ;
8484 test . equals ( p . fileName , 'colors' ) ;
8585 test . equals ( p . fileExtension , '.mustache' ) ;
@@ -88,9 +88,9 @@ tap.test(
8888 test . equals ( p . patternName , 'Colors' ) ;
8989 test . equals (
9090 p . getPatternLink ( pl ) ,
91- '00-atoms-00-global-00- colors' +
91+ '00-atoms-00-global-colors' +
9292 path . sep +
93- '00-atoms-00-global-00- colors.rendered.html'
93+ '00-atoms-00-global-colors.rendered.html'
9494 ) ;
9595 test . equals ( p . patternGroup , 'atoms' ) ;
9696 test . equals ( p . patternSubGroup , 'global' ) ;
@@ -117,8 +117,8 @@ tap.test('test Pattern name for variants correctly initialzed', function(test) {
117117 d : 123 ,
118118 }
119119 ) ;
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' ) ;
122122 test . end ( ) ;
123123} ) ;
124124
@@ -153,10 +153,10 @@ tap.test('test Pattern with own-directory gets resetted as expected', function(
153153 test
154154) {
155155 var p = new Pattern ( '00-atoms/00-button/button.mustache' , { d : 123 } , pl ) ;
156- p . promoteFromFlatPatternToDirectory ( pl ) ;
156+ p . promoteFromDirectoryToFlatPattern ( pl ) ;
157157
158158 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' ) ;
160160 test . equals ( p . subdir , path . join ( '00-atoms' , '00-button' ) ) ;
161161 test . equals ( p . fileName , 'button' ) ;
162162 test . equals ( p . fileExtension , '.mustache' ) ;
@@ -165,13 +165,10 @@ tap.test('test Pattern with own-directory gets resetted as expected', function(
165165 test . equals ( p . patternName , 'Button' ) ;
166166 test . equals (
167167 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' )
172169 ) ;
173170 test . equals ( p . patternGroup , 'atoms' ) ;
174- test . equals ( p . flatPatternPath , '00-atoms-00-button ' ) ;
171+ test . equals ( p . flatPatternPath , '00-atoms' ) ;
175172 test . equals ( p . patternPartial , 'atoms-button' ) ;
176173 test . equals ( p . template , '' ) ;
177174 test . equals ( p . lineage . length , 0 ) ;
@@ -255,7 +252,7 @@ tap.test(
255252 '00-atoms/00-global/00-colors-alt/colors-alt~variant.mustache' ,
256253 { d : 123 }
257254 ) ;
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' ) ;
259256 test . equals ( p . flatPatternPath , '00-atoms-00-global' ) ;
260257 test . equals ( p . patternBaseName , 'colors-alt-variant' ) ;
261258
@@ -295,7 +292,7 @@ tap.test('test Patterns that are nested deeper without own directory', function(
295292 '00-atoms/00-global/00-random-folder/00-another-folder/00-colors-alt/colors-alt.mustache' ,
296293 { d : 123 }
297294 ) ;
298- test . equals ( p . name , '00-atoms-00-global-00- colors-alt' ) ;
295+ test . equals ( p . name , '00-atoms-00-global-colors-alt' ) ;
299296 test . equals ( p . flatPatternPath , '00-atoms-00-global' ) ;
300297
301298 var p = new Pattern (
0 commit comments