44
55var module = angular . mock . module ;
66
7- import * as uiRouter from "../src/ui-router"
8- import { inherit , extend , curry } from "../src/common/common"
9- import Path from "../src/path/path"
10- import Resolvable from "../src/resolve/resolvable"
11- import ResolveContext from "../src/resolve/resolveContext"
12- import PathContext from "../src/resolve/pathContext"
13- import PathFactory from "../src/path/pathFactory"
14- import { ViewConfig } from "../src/view/view"
15- import StateBuilder from "../src/state/stateBuilder"
16- import StateMatcher from "../src/state/stateMatcher"
17- import StateQueueManager from "../src/state/stateQueueManager"
7+ import { inherit , extend , curry } from "../src/common/common" ;
8+ import Path from "../src/path/path" ;
9+ import ResolveContext from "../src/resolve/resolveContext" ;
10+ import PathContext from "../src/resolve/pathContext" ;
11+ import PathFactory from "../src/path/pathFactory" ;
12+ import { ViewConfig } from "../src/view/view" ;
13+ import StateBuilder from "../src/state/stateBuilder" ;
14+ import StateMatcher from "../src/state/stateMatcher" ;
1815
19- import { IState } from "../src/state/interface"
20- import { State } from "../src/state/state"
16+ import { IState } from "../src/state/interface" ;
17+ import { State } from "../src/state/state" ;
2118
2219describe ( 'view' , function ( ) {
2320 var scope , $compile , $injector , elem , $controllerProvider , $urlMatcherFactoryProvider ;
@@ -32,13 +29,13 @@ describe('view', function() {
3229 } ) ) ;
3330
3431 let register ;
35- let registerState = curry ( function ( states , stateBuilder , config ) {
32+ let registerState = curry ( function ( _states , stateBuilder , config ) {
3633 let state = inherit ( new State ( ) , extend ( { } , config , {
3734 self : config ,
3835 resolve : config . resolve || { }
3936 } ) ) ;
4037 let built : IState = stateBuilder . build ( state ) ;
41- return states [ built . name ] = built ;
38+ return _states [ built . name ] = built ;
4239 } ) ;
4340
4441 beforeEach ( inject ( function ( $rootScope , _$compile_ , _$injector_ ) {
@@ -58,12 +55,12 @@ describe('view', function() {
5855 let ctx , state ;
5956 beforeEach ( ( ) => {
6057 state = register ( { name : "foo" } ) ;
61- var nodes = [ root , state ] . map ( state => ( { state : state , ownParams : { } } ) ) ;
58+ var nodes = [ root , state ] . map ( _state => ( { state : _state , ownParams : { } } ) ) ;
6259 var path = PathFactory . bindTransNodesToPath ( < any > new Path ( nodes ) ) ;
6360 ctx = new ResolveContext ( path ) ;
6461 } ) ;
6562
66- it ( 'uses the controllerProvider to get controller dynamically' , inject ( function ( $view , $q , $injector ) {
63+ it ( 'uses the controllerProvider to get controller dynamically' , inject ( function ( $view , $q ) {
6764 var ctrlExpression ;
6865 $controllerProvider . register ( "AcmeFooController" , function ( $scope , foo ) { } ) ;
6966 elem . append ( $compile ( '<div><ui-view></ui-view></div>' ) ( scope ) ) ;
0 commit comments