mardi 26 juillet 2016

Special code from controller only executable from unit test (jasmine)

I was wondering if it's possible to execute/run some code from the controller only when it's an unit test.

Something like this :

if(**jasmine unit test detected**){
          console.log("this message only visible in unit test")
        }

Any suggestions ? Thanks !

Aucun commentaire:

Enregistrer un commentaire