@@ -160,18 +160,18 @@ describe("urlMatcherFactory", function () {
160
160
} ) ;
161
161
162
162
describe ( "typed parameters" , function ( ) {
163
- it ( "should accept object definitions" , function ( ) {
163
+ it ( "should accept object definitions" , function ( ) {
164
164
var type = { encode : function ( ) { } , decode : function ( ) { } } ;
165
165
$umf . type ( "myType" , type ) ;
166
166
expect ( $umf . type ( "myType" ) . encode ) . toBe ( type . encode ) ;
167
167
} ) ;
168
168
169
- it ( "should reject duplicate definitions" , function ( ) {
170
- $umf . type ( "myType" , { encode : function ( ) { } , decode : function ( ) { } } ) ;
169
+ it ( "should reject duplicate definitions" , function ( ) {
170
+ $umf . type ( "myType" , { encode : function ( ) { } , decode : function ( ) { } } ) ;
171
171
expect ( function ( ) { $umf . type ( "myType" , { } ) ; } ) . toThrow ( "A type named 'myType' has already been defined." ) ;
172
172
} ) ;
173
173
174
- it ( "should accept injected function definitions" , inject ( function ( $stateParams ) {
174
+ it ( "should accept injected function definitions" , inject ( function ( $stateParams ) {
175
175
$umf . type ( "myType" , function ( $stateParams ) {
176
176
return {
177
177
decode : function ( ) {
@@ -182,7 +182,7 @@ describe("urlMatcherFactory", function () {
182
182
expect ( $umf . type ( "myType" ) . decode ( ) ) . toBe ( $stateParams ) ;
183
183
} ) ) ;
184
184
185
- it ( "should match built-in types" , function ( ) {
185
+ it ( "should match built-in types" , function ( ) {
186
186
var m = new UrlMatcher ( "/{foo:int}/{flag:bool}" ) ;
187
187
expect ( m . exec ( "/1138/1" ) ) . toEqual ( { foo : 1138 , flag : true } ) ;
188
188
expect ( m . format ( { foo : 5 , flag : true } ) ) . toBe ( "/5/1" ) ;
0 commit comments