@@ -12,7 +12,7 @@ describe('uiStateRef', function() {
1212 url : '/contacts' ,
1313 template : '<a ui-sref=".item({ id: 5 })" class="item">Person</a> <ui-view></ui-view>'
1414 } ) . state ( 'contacts.item' , {
15- url : '/:id ' ,
15+ url : '/{id:int} ' ,
1616 template : '<a ui-sref=".detail" class="item-detail">Detail</a> | <a ui-sref="^" class="item-parent">Parent</a> | <ui-view></ui-view>'
1717 } ) . state ( 'contacts.item.detail' , {
1818 template : '<div class="title">Detail</div> | <a ui-sref="^" class="item-parent2">Item</a>'
@@ -130,7 +130,7 @@ describe('uiStateRef', function() {
130130 $q . flush ( ) ;
131131
132132 expect ( $state . current . name ) . toEqual ( 'contacts.item.detail' ) ;
133- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
133+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
134134 } ) ) ;
135135
136136 it ( 'should transition when given a click that contains no data (fake-click)' , inject ( function ( $state , $stateParams , $q ) {
@@ -147,7 +147,7 @@ describe('uiStateRef', function() {
147147 $q . flush ( ) ;
148148
149149 expect ( $state . current . name ) . toEqual ( 'contacts.item.detail' ) ;
150- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
150+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
151151 } ) ) ;
152152
153153 it ( 'should not transition states when ctrl-clicked' , inject ( function ( $state , $stateParams , $q ) {
@@ -393,7 +393,7 @@ describe('uiStateRef', function() {
393393 $q . flush ( ) ;
394394
395395 expect ( $state . $current . name ) . toBe ( "contacts.item.detail" ) ;
396- expect ( $state . params ) . toEqual ( { id : "5" } ) ;
396+ expect ( $state . params ) . toEqual ( { id : 5 } ) ;
397397 } ) ) ;
398398
399399 it ( 'should resolve states from parent uiView' , inject ( function ( $state , $stateParams , $q , $timeout ) {
0 commit comments