@@ -2,22 +2,22 @@ import { StateBuilder, StateMatcher, ng1ViewsBuilder, extend } from '../src/inde
22import { Resolvable } from '@uirouter/core' ;
33declare var inject ;
44
5- describe ( 'Ng1 StateBuilder' , function ( ) {
5+ describe ( 'Ng1 StateBuilder' , function ( ) {
66 const parent = { name : '' } ;
77 let builder ,
88 matcher ,
99 urlMatcherFactoryProvider : any = {
10- compile : function ( ) { } ,
11- isMatcher : function ( ) { } ,
10+ compile : function ( ) { } ,
11+ isMatcher : function ( ) { } ,
1212 } ;
1313
14- beforeEach ( function ( ) {
14+ beforeEach ( function ( ) {
1515 matcher = new StateMatcher ( { } ) ;
1616 builder = new StateBuilder ( matcher , urlMatcherFactoryProvider ) ;
1717 builder . builder ( 'views' , ng1ViewsBuilder ) ;
1818 } ) ;
1919
20- it ( 'should use the state object to build a default view, when no `views` property is found' , function ( ) {
20+ it ( 'should use the state object to build a default view, when no `views` property is found' , function ( ) {
2121 const config = { url : '/foo' , templateUrl : '/foo.html' , controller : 'FooController' , parent : parent } ;
2222 const built = builder . builder ( 'views' ) ( config ) ;
2323
@@ -29,14 +29,14 @@ describe('Ng1 StateBuilder', function() {
2929 } ) ;
3030 } ) ;
3131
32- it ( 'It should use the views object to build views, when defined' , function ( ) {
32+ it ( 'It should use the views object to build views, when defined' , function ( ) {
3333 const config = { a : { foo : 'bar' , controller : 'FooController' } } ;
3434 const builtViews = builder . builder ( 'views' ) ( { parent : parent , views : config } ) ;
3535 expect ( builtViews . a . foo ) . toEqualData ( config . a . foo ) ;
3636 expect ( builtViews . a . controller ) . toEqualData ( config . a . controller ) ;
3737 } ) ;
3838
39- it ( 'should not allow a view config with both component and template keys' , inject ( function ( $injector ) {
39+ it ( 'should not allow a view config with both component and template keys' , inject ( function ( $injector ) {
4040 const config = {
4141 name : 'foo' ,
4242 url : '/foo' ,
@@ -50,7 +50,7 @@ describe('Ng1 StateBuilder', function() {
5050 expect ( ( ) => builder . builder ( 'views' ) ( extend ( { bindings : { } } , config ) ) ) . toThrow ( ) ;
5151 } ) ) ;
5252
53- it ( 'should replace a resolve: string value with a function that injects the service of the same name' , inject ( function (
53+ it ( 'should replace a resolve: string value with a function that injects the service of the same name' , inject ( function (
5454 $injector
5555 ) {
5656 const config = { resolve : { foo : 'bar' } } ;
0 commit comments