@@ -175,26 +175,44 @@ describe('angular-fullstack:endpoint', function() {
175175 describe ( 'with a generated capitalized endpont' , function ( ) {
176176 var dir ;
177177 beforeEach ( function ( ) {
178- return runEndpointGen ( 'foo ' , { config : config [ 'generator-angular-fullstack' ] } ) . then ( _dir => {
178+ return runEndpointGen ( 'Foo ' , { config : config [ 'generator-angular-fullstack' ] } ) . then ( _dir => {
179179 dir = _dir ;
180+
181+ return Promise . all ( [
182+ copyAsync ( path . join ( genDir , '/server/.jshintrc' ) , './server/.jshintrc' ) ,
183+ copyAsync ( path . join ( genDir , '/server/.jshintrc-spec' ) , './server/.jshintrc-spec' )
184+ ] ) ;
180185 } ) ;
181186 } ) ;
182187
188+ it ( 'should generate the expected files' ) ;
189+
183190 it ( 'should pass jscs' ) ;
184191
185- it ( 'should pass lint' ) ;
192+ it ( 'should pass lint' , function ( ) {
193+ return jshintDir ( dir , 'Foo' ) . should . be . fulfilled ( ) ;
194+ } ) ;
186195 } ) ;
187196
188197 describe ( 'with a generated path name endpont' , function ( ) {
189198 var dir ;
190199 beforeEach ( function ( ) {
191- return runEndpointGen ( 'foo' , { config : config [ 'generator-angular-fullstack' ] } ) . then ( _dir => {
200+ return runEndpointGen ( 'foo/bar ' , { config : config [ 'generator-angular-fullstack' ] } ) . then ( _dir => {
192201 dir = _dir ;
202+
203+ return Promise . all ( [
204+ copyAsync ( path . join ( genDir , '/server/.jshintrc' ) , './server/.jshintrc' ) ,
205+ copyAsync ( path . join ( genDir , '/server/.jshintrc-spec' ) , './server/.jshintrc-spec' )
206+ ] ) ;
193207 } ) ;
194208 } ) ;
195209
210+ it ( 'should generate the expected files' ) ;
211+
196212 it ( 'should pass jscs' ) ;
197213
198- it ( 'should pass lint' ) ;
214+ it ( 'should pass lint' , function ( ) {
215+ return jshintDir ( dir , 'foo' , 'foo/bar' ) . should . be . fulfilled ( ) ;
216+ } ) ;
199217 } ) ;
200218} ) ;
0 commit comments