@@ -58,7 +58,7 @@ describe('angular-fullstack:app', function() {
5858 describe ( 'default settings' , function ( ) {
5959 var dir ;
6060
61- beforeEach ( function ( ) {
61+ before ( function ( ) {
6262 return runGen ( defaultOptions ) . then ( _dir => {
6363 dir = _dir ;
6464 } ) ;
@@ -83,7 +83,7 @@ describe('angular-fullstack:app', function() {
8383 } ) ;
8484
8585 describe ( 'with a generated endpoint' , function ( ) {
86- beforeEach ( function ( ) {
86+ before ( function ( ) {
8787 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
8888 return runEndpointGen ( 'foo' , { config : config [ 'generator-angular-fullstack' ] } ) ;
8989 } ) ;
@@ -95,9 +95,9 @@ describe('angular-fullstack:app', function() {
9595 } ) ;
9696
9797 describe ( 'with a generated capitalized endpoint' , function ( ) {
98- beforeEach ( function ( ) {
98+ before ( function ( ) {
9999 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
100- return runEndpointGen ( 'Foo ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
100+ return runEndpointGen ( 'Bar ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
101101 } ) ;
102102 } ) ;
103103
@@ -107,9 +107,9 @@ describe('angular-fullstack:app', function() {
107107 } ) ;
108108
109109 describe ( 'with a generated path name endpoint' , function ( ) {
110- beforeEach ( function ( ) {
110+ before ( function ( ) {
111111 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
112- return runEndpointGen ( 'foo/bar ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
112+ return runEndpointGen ( 'foo/baz ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
113113 } ) ;
114114 } ) ;
115115
@@ -119,9 +119,9 @@ describe('angular-fullstack:app', function() {
119119 } ) ;
120120
121121 describe ( 'with a generated snake-case endpoint' , function ( ) {
122- beforeEach ( function ( ) {
122+ before ( function ( ) {
123123 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
124- return runEndpointGen ( 'foo-bar ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
124+ return runEndpointGen ( 'foo-boo ' , { config : config [ 'generator-angular-fullstack' ] } ) ;
125125 } ) ;
126126 } ) ;
127127
@@ -231,7 +231,7 @@ describe('angular-fullstack:app', function() {
231231 } ) ;
232232
233233 describe ( 'with a generated endpoint' , function ( ) {
234- beforeEach ( function ( ) {
234+ before ( function ( ) {
235235 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
236236 return runEndpointGen ( 'foo' , { config : config [ 'generator-angular-fullstack' ] } ) ;
237237 } ) ;
@@ -276,7 +276,7 @@ describe('angular-fullstack:app', function() {
276276 } ;
277277 this . retries ( 3 ) ; // Sequelize seems to be quite flaky
278278
279- beforeEach ( function ( ) {
279+ before ( function ( ) {
280280 return runGen ( testOptions ) . then ( _dir => {
281281 dir = _dir ;
282282 lintResult = runCmd ( 'gulp lint:scripts' ) ;
@@ -303,7 +303,7 @@ describe('angular-fullstack:app', function() {
303303 } ) ;
304304
305305 describe . skip ( 'with a generated endpoint' , function ( ) {
306- beforeEach ( function ( ) {
306+ before ( function ( ) {
307307 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
308308 return runEndpointGen ( 'foo' , { config : config [ 'generator-angular-fullstack' ] } ) ;
309309 } ) ;
@@ -348,7 +348,7 @@ describe('angular-fullstack:app', function() {
348348 uibootstrap : false
349349 } ;
350350
351- beforeEach ( function ( ) {
351+ before ( function ( ) {
352352 return runGen ( testOptions , { options : { devPort : '9005' } } ) . then ( _dir => {
353353 dir = _dir ;
354354 lintResult = runCmd ( 'gulp lint:scripts' ) ;
@@ -376,7 +376,7 @@ describe('angular-fullstack:app', function() {
376376 } ) ;
377377
378378 describe ( 'with a generated endpoint' , function ( ) {
379- beforeEach ( function ( ) {
379+ before ( function ( ) {
380380 return readJSON ( path . join ( dir , '.yo-rc.json' ) ) . then ( config => {
381381 return runEndpointGen ( 'foo' , { config : config [ 'generator-angular-fullstack' ] } ) ;
382382 } ) ;
0 commit comments