Skip to content

Commit 0d78b21

Browse files
committed
chore(style): code style cleanups
1 parent f0211c3 commit 0d78b21

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/test-route-creation.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ describe('Angular generator route mechanism', function () {
3939
modules: ['routeModule']
4040
});
4141

42-
angular.run({}, function(){
42+
angular.run({}, function() {
4343
done();
4444
});
4545
});
4646
});
4747

48-
4948
it('should generate routes, controllers and views', function(done){
5049
var route = 'simpleroute';
5150
var expected = [
@@ -63,7 +62,7 @@ describe('Angular generator route mechanism', function () {
6362

6463
var angularRouteGenerator = helpers.createGenerator('angular:route', deps, [route]);
6564

66-
angularRouteGenerator.run({}, function(){
65+
angularRouteGenerator.run({}, function() {
6766

6867
// Check if new files are created for the route
6968
helpers.assertFile(expected);
@@ -77,7 +76,6 @@ describe('Angular generator route mechanism', function () {
7776
});
7877
});
7978

80-
8179
// Test with URI specified explicitly
8280
it('should generate routes, controllers and views with the route uri given', function(done){
8381
var route = 'complexroute';
@@ -95,9 +93,8 @@ describe('Angular generator route mechanism', function () {
9593
'../../view'
9694
];
9795

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() {
10198

10299
// Check if new files are created for the route
103100
helpers.assertFile(expected);

0 commit comments

Comments
 (0)