You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it'd be useful to have a matcher (or change uri) to compare query parameters ignoring their order. I was able to implement that with a custom matcher:
funcuriWithQuery(uriString:String)->(request:NSURLRequest)->Bool{return{(request:NSURLRequest)inifuri(uriString)(request:request){returntrue}
if letcomponents=NSURLComponents(string:uriString),requestComponents=request.URL.flatMap({NSURLComponents.init(URL:$0,resolvingAgainstBaseURL:false)}){letcomponentsWithoutParams=components.copy()as!NSURLComponentscomponentsWithoutParams.query=nilletrequestComponentsWithoutParams=requestComponents.copy()as!NSURLComponentsrequestComponentsWithoutParams.query=nilifrequestComponentsWithoutParams.URL==componentsWithoutParams.URL{returnrequestComponents.queryItems.flatMap(Set.init)==components.queryItems.flatMap(Set.init)}}return false
}}
Note that this probably doesn't support path templates.
Activity