@@ -114,7 +114,7 @@ describe('Resolvables system:', function () {
114
114
115
115
it ( 'should resolve only eager resolves when run with "eager" policy' , inject ( function ( $q ) {
116
116
var path = makePath ( [ "J" , "N" ] ) ;
117
- var promise = path . elements [ 1 ] . resolvePathElement ( path , { policy : "eager" } ) ;
117
+ var promise = path . elements [ 1 ] . resolvePathElement ( path , { resolvePolicy : "eager" } ) ;
118
118
promise . then ( function ( ) {
119
119
var results = map ( path . getResolvables ( ) , function ( r ) { return r . data ; } ) ;
120
120
expect ( results ) . toEqualData ( { _J : "J" , _N : "JN" } ) ;
@@ -127,7 +127,7 @@ describe('Resolvables system:', function () {
127
127
128
128
it ( 'should resolve only eager and lazy resolves in PathElement when run with "lazy" policy' , inject ( function ( $q ) {
129
129
var path = makePath ( [ "J" , "N" ] ) ;
130
- var promise = path . elements [ 1 ] . resolvePathElement ( path , { policy : "lazy" } ) ;
130
+ var promise = path . elements [ 1 ] . resolvePathElement ( path , { resolvePolicy : "lazy" } ) ;
131
131
promise . then ( function ( ) {
132
132
expect ( getResolvedData ( path ) ) . toEqualData ( { _J : "J" , _N : "JN" , _N2 : "JN2" } ) ;
133
133
asyncCount ++ ;
@@ -162,7 +162,7 @@ describe('Resolvables system:', function () {
162
162
163
163
it ( 'should resolve only eager resolves when run with "eager" policy' , inject ( function ( $q ) {
164
164
var path = makePath ( [ "J" , "N" ] ) ;
165
- var promise = path . resolvePath ( { policy : "eager" } ) ;
165
+ var promise = path . resolvePath ( { resolvePolicy : "eager" } ) ;
166
166
promise . then ( function ( ) {
167
167
expect ( getResolvedData ( path ) ) . toEqualData ( { _J : "J" , _N : "JN" } ) ;
168
168
asyncCount ++ ;
@@ -174,7 +174,7 @@ describe('Resolvables system:', function () {
174
174
175
175
it ( 'should resolve only lazy and eager resolves when run with "lazy" policy' , inject ( function ( $q ) {
176
176
var path = makePath ( [ "J" , "N" ] ) ;
177
- var promise = path . resolvePath ( { policy : "lazy" } ) ;
177
+ var promise = path . resolvePath ( { resolvePolicy : "lazy" } ) ;
178
178
promise . then ( function ( ) {
179
179
expect ( getResolvedData ( path ) ) . toEqualData ( { _J : "J" , _N : "JN" , _N2 : "JN2" } ) ;
180
180
asyncCount ++ ;
@@ -531,7 +531,7 @@ describe("State transitions with resolves", function() {
531
531
it ( "should invoke jit resolves when they are injected" , inject ( function ( ) {
532
532
statesMap . J . controller = function JController ( _J ) { } ;
533
533
534
- testGo ( "J" , { } , { trace : true } ) ;
534
+ testGo ( "J" ) ;
535
535
expectCounts . _J ++ ;
536
536
expect ( counts ) . toEqualData ( expectCounts ) ;
537
537
} ) ) ;
@@ -550,7 +550,7 @@ describe("State transitions with resolves", function() {
550
550
} ) ) ;
551
551
552
552
it ( "should not re-invoke jit resolves" , inject ( function ( ) {
553
- statesMap . J . controller = function KController ( _J ) { } ;
553
+ statesMap . J . controller = function JController ( _J ) { } ;
554
554
statesMap . K . controller = function KController ( _K ) { } ;
555
555
testGo ( "J" ) ;
556
556
expectCounts . _J ++ ;
@@ -565,7 +565,7 @@ describe("State transitions with resolves", function() {
565
565
566
566
it ( "should invoke jit resolves during a transition that are injected in a hook like onEnter" , inject ( function ( ) {
567
567
statesMap . J . onEnter = function onEnter ( _J ) { } ;
568
- testGo ( "J" , { } , { trace : true } ) ;
568
+ testGo ( "J" ) ;
569
569
expectCounts . _J ++ ;
570
570
expect ( counts ) . toEqualData ( expectCounts ) ;
571
571
} ) ) ;
0 commit comments