@@ -125,7 +125,7 @@ describe('uiStateRef', function() {
125
125
$q . flush ( ) ;
126
126
127
127
expect ( $state . current . name ) . toEqual ( 'contacts.item.detail' ) ;
128
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
128
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
129
129
} ) ) ;
130
130
131
131
it ( 'should transition when given a click that contains no data (fake-click)' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -142,7 +142,7 @@ describe('uiStateRef', function() {
142
142
$q . flush ( ) ;
143
143
144
144
expect ( $state . current . name ) . toEqual ( 'contacts.item.detail' ) ;
145
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
145
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
146
146
} ) ) ;
147
147
148
148
it ( 'should not transition states when ctrl-clicked' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -153,7 +153,7 @@ describe('uiStateRef', function() {
153
153
$q . flush ( ) ;
154
154
155
155
expect ( $state . current . name ) . toEqual ( '' ) ;
156
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
156
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
157
157
} ) ) ;
158
158
159
159
it ( 'should not transition states when meta-clicked' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -164,7 +164,7 @@ describe('uiStateRef', function() {
164
164
$q . flush ( ) ;
165
165
166
166
expect ( $state . current . name ) . toEqual ( '' ) ;
167
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
167
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
168
168
} ) ) ;
169
169
170
170
it ( 'should not transition states when shift-clicked' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -175,7 +175,7 @@ describe('uiStateRef', function() {
175
175
$q . flush ( ) ;
176
176
177
177
expect ( $state . current . name ) . toEqual ( '' ) ;
178
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
178
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
179
179
} ) ) ;
180
180
181
181
it ( 'should not transition states when middle-clicked' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -186,7 +186,7 @@ describe('uiStateRef', function() {
186
186
$q . flush ( ) ;
187
187
188
188
expect ( $state . current . name ) . toEqual ( '' ) ;
189
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
189
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
190
190
} ) ) ;
191
191
192
192
it ( 'should not transition states when element has target specified' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -198,7 +198,7 @@ describe('uiStateRef', function() {
198
198
$q . flush ( ) ;
199
199
200
200
expect ( $state . current . name ) . toEqual ( '' ) ;
201
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
201
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
202
202
} ) ) ;
203
203
204
204
it ( 'should not transition states if preventDefault() is called in click handler' , inject ( function ( $state , $stateParams , $document , $q ) {
@@ -212,7 +212,7 @@ describe('uiStateRef', function() {
212
212
$q . flush ( ) ;
213
213
214
214
expect ( $state . current . name ) . toEqual ( '' ) ;
215
- expect ( $stateParams ) . toEqual ( { id : "5" } ) ;
215
+ expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
216
216
} ) ) ;
217
217
218
218
it ( 'should allow passing params to current state' , inject ( function ( $compile , $rootScope , $state ) {
@@ -277,7 +277,7 @@ describe('uiStateRef', function() {
277
277
$q . flush ( ) ;
278
278
279
279
expect ( $state . $current . name ) . toBe ( "contacts.item.detail" ) ;
280
- expect ( $state . params ) . toEqual ( { id : '5' } ) ;
280
+ expect ( $state . params ) . toEqual ( { id : 5 } ) ;
281
281
} ) ) ;
282
282
283
283
it ( 'should resolve states from parent uiView' , inject ( function ( $state , $stateParams , $q , $timeout ) {
0 commit comments