@@ -2,22 +2,22 @@ import { StateBuilder, StateMatcher, ng1ViewsBuilder, extend } from '../src/inde
2
2
import { Resolvable } from '@uirouter/core' ;
3
3
declare var inject ;
4
4
5
- describe ( 'Ng1 StateBuilder' , function ( ) {
5
+ describe ( 'Ng1 StateBuilder' , function ( ) {
6
6
const parent = { name : '' } ;
7
7
let builder ,
8
8
matcher ,
9
9
urlMatcherFactoryProvider : any = {
10
- compile : function ( ) { } ,
11
- isMatcher : function ( ) { } ,
10
+ compile : function ( ) { } ,
11
+ isMatcher : function ( ) { } ,
12
12
} ;
13
13
14
- beforeEach ( function ( ) {
14
+ beforeEach ( function ( ) {
15
15
matcher = new StateMatcher ( { } ) ;
16
16
builder = new StateBuilder ( matcher , urlMatcherFactoryProvider ) ;
17
17
builder . builder ( 'views' , ng1ViewsBuilder ) ;
18
18
} ) ;
19
19
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 ( ) {
21
21
const config = { url : '/foo' , templateUrl : '/foo.html' , controller : 'FooController' , parent : parent } ;
22
22
const built = builder . builder ( 'views' ) ( config ) ;
23
23
@@ -29,14 +29,14 @@ describe('Ng1 StateBuilder', function() {
29
29
} ) ;
30
30
} ) ;
31
31
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 ( ) {
33
33
const config = { a : { foo : 'bar' , controller : 'FooController' } } ;
34
34
const builtViews = builder . builder ( 'views' ) ( { parent : parent , views : config } ) ;
35
35
expect ( builtViews . a . foo ) . toEqualData ( config . a . foo ) ;
36
36
expect ( builtViews . a . controller ) . toEqualData ( config . a . controller ) ;
37
37
} ) ;
38
38
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 ) {
40
40
const config = {
41
41
name : 'foo' ,
42
42
url : '/foo' ,
@@ -50,7 +50,7 @@ describe('Ng1 StateBuilder', function() {
50
50
expect ( ( ) => builder . builder ( 'views' ) ( extend ( { bindings : { } } , config ) ) ) . toThrow ( ) ;
51
51
} ) ) ;
52
52
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 (
54
54
$injector
55
55
) {
56
56
const config = { resolve : { foo : 'bar' } } ;
0 commit comments