I have an URL and I would like to test that it is the right one, even if the order of its (query) items changes. I can write a test that ensures that the URL is the right one, but I don't know how to ensure that the order of its queries doesn't affect it. I think, I should use URLComponents's queryItems property, but I'm not sure. If you know how it can be achieved, please help. Thanks.
Aucun commentaire:
Enregistrer un commentaire