samedi 17 mars 2018

Is using spyOn() a bad practice for testing behaviour?

spyOn() in jasmine is a way to "spy on" a mock method. I have seen people use it extensively, even to check the parameter values that are passed on to the mocked method etc. Is this really testing behaviour or is this testing implementation?

Aucun commentaire:

Enregistrer un commentaire