@@ -122,7 +122,7 @@ describe("documentjs/lib/generators/html/build",function(){
122
122
} ) ;
123
123
} ) ;
124
124
125
- it ( "copy staticDist folders to static dist" , function ( ) {
125
+ it ( "copy absolute staticDist folders to static dist" , function ( ) {
126
126
this . timeout ( 120000 ) ;
127
127
return build . staticDist ( {
128
128
forceBuild : true ,
@@ -141,7 +141,7 @@ describe("documentjs/lib/generators/html/build",function(){
141
141
} ) ;
142
142
} ) ;
143
143
144
- it . only ( "copy staticDist files to static dist" , function ( ) {
144
+ it ( "copy relative staticDist folders to static dist" , function ( ) {
145
145
this . timeout ( 120000 ) ;
146
146
return build . staticDist ( {
147
147
forceBuild : true ,
@@ -150,13 +150,13 @@ describe("documentjs/lib/generators/html/build",function(){
150
150
"can-component" : "3.0.0-pre.9"
151
151
} ,
152
152
staticDist : [
153
- './test-static-dist.html '
153
+ './test-static-dist'
154
154
]
155
155
} ,
156
156
} ) . then ( function ( result ) {
157
- return read ( path . join ( __dirname , ".." , result . distFolder , "test-static-dist.html " ) ) ;
157
+ return read ( path . join ( __dirname , ".." , result . distFolder , "test.css " ) ) ;
158
158
} ) . then ( function ( res ) {
159
- assert . ok ( / h e l l o w o r l d / . test ( res ) , "got static.js with component" ) ;
159
+ assert . ok ( / # T e s t I D / . test ( res ) , "got static.js with component" ) ;
160
160
} ) ;
161
161
} ) ;
162
162
0 commit comments