lundi 14 septembre 2020

Unit testing Angular

Can somebody tell me please how to write unit tests for the below statement?!

localStorage.getItem('token') ? (this.isAuthenticated = true) : (this.isAuthenticated = false);

Thank you in advance!

Aucun commentaire:

Enregistrer un commentaire