@@ -314,6 +314,41 @@ describe('angular-fullstack generator', function () {
314314 } . bind ( this ) ) ;
315315 } ) ;
316316
317+ describe ( 'making sure test fixtures are present' , function ( ) {
318+
319+ it ( 'should have package.json in fixtures' , function ( ) {
320+ helpers . assertFile ( [
321+ path . join ( __dirname , 'fixtures' , 'package.json' )
322+ ] ) ;
323+ } ) ;
324+
325+ it ( 'should have bower.json in fixtures' , function ( ) {
326+ helpers . assertFile ( [
327+ path . join ( __dirname , 'fixtures' , 'bower.json' )
328+ ] ) ;
329+ } ) ;
330+
331+ it ( 'should have all npm packages in fixtures/node_modules' , function ( ) {
332+ var packageJson = require ( './fixtures/package.json' ) ;
333+ var deps = Object . keys ( packageJson . dependencies ) ;
334+ deps = deps . concat ( Object . keys ( packageJson . devDependencies ) ) ;
335+ deps = deps . map ( function ( dep ) {
336+ return path . join ( __dirname , 'fixtures' , 'node_modules' , dep ) ;
337+ } ) ;
338+ helpers . assertFile ( deps ) ;
339+ } ) ;
340+
341+ it ( 'should have all bower packages in fixtures/bower_components' , function ( ) {
342+ var bowerJson = require ( './fixtures/bower.json' ) ;
343+ var deps = Object . keys ( bowerJson . dependencies ) ;
344+ deps = deps . concat ( Object . keys ( bowerJson . devDependencies ) ) ;
345+ deps = deps . map ( function ( dep ) {
346+ return path . join ( __dirname , 'fixtures' , 'bower_components' , dep ) ;
347+ } ) ;
348+ helpers . assertFile ( deps ) ;
349+ } ) ;
350+ } ) ;
351+
317352 describe ( 'running app' , function ( ) {
318353
319354 beforeEach ( function ( ) {
0 commit comments