dimanche 4 avril 2021

How can I manually pass an URL when I test angular service? [closed]

I need so test a service that communicates with a backend in angular. For that I need to manually insert some dummy data, but I have a problem. One of the fields of my model is "url" of type URL. When I test it I try to pass a random link, such as "https://google.com", however, the test cannot be run because I always get this "Type string is not comparable to type Url". How can I pass that url? Can anyone please help me? Thank you

Aucun commentaire:

Enregistrer un commentaire