@@ -39,13 +39,12 @@ describe('Angular generator route mechanism', function () {
39
39
modules : [ 'routeModule' ]
40
40
} ) ;
41
41
42
- angular . run ( { } , function ( ) {
42
+ angular . run ( { } , function ( ) {
43
43
done ( ) ;
44
44
} ) ;
45
45
} ) ;
46
46
} ) ;
47
47
48
-
49
48
it ( 'should generate routes, controllers and views' , function ( done ) {
50
49
var route = 'simpleroute' ;
51
50
var expected = [
@@ -63,7 +62,7 @@ describe('Angular generator route mechanism', function () {
63
62
64
63
var angularRouteGenerator = helpers . createGenerator ( 'angular:route' , deps , [ route ] ) ;
65
64
66
- angularRouteGenerator . run ( { } , function ( ) {
65
+ angularRouteGenerator . run ( { } , function ( ) {
67
66
68
67
// Check if new files are created for the route
69
68
helpers . assertFile ( expected ) ;
@@ -77,7 +76,6 @@ describe('Angular generator route mechanism', function () {
77
76
} ) ;
78
77
} ) ;
79
78
80
-
81
79
// Test with URI specified explicitly
82
80
it ( 'should generate routes, controllers and views with the route uri given' , function ( done ) {
83
81
var route = 'complexroute' ;
@@ -95,9 +93,8 @@ describe('Angular generator route mechanism', function () {
95
93
'../../view'
96
94
] ;
97
95
98
- var angularRouteGenerator = helpers . createGenerator ( 'angular:route' , deps , [ route ] , { uri : uri } ) ;
99
-
100
- angularRouteGenerator . run ( { } , function ( ) {
96
+ angular = helpers . createGenerator ( 'angular:route' , deps , [ route ] , { uri : uri } ) ;
97
+ angular . run ( { } , function ( ) {
101
98
102
99
// Check if new files are created for the route
103
100
helpers . assertFile ( expected ) ;
0 commit comments