web:javascript:angular:unittests
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
web:javascript:angular:unittests [2019/06/11 03:00] – [Implementing a Test with Mocked HTTP] sgariepy | web:javascript:angular:unittests [2022/02/02 00:42] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 649: | Ligne 649: | ||
}); | }); | ||
</ | </ | ||
+ | |||
+ | ==== Obtenir l' | ||
+ | |||
Pour obtenir une instance de '' | Pour obtenir une instance de '' | ||
<code javascript> | <code javascript> | ||
+ | import { TestBed, inject } from ' | ||
+ | |||
+ | // ... | ||
+ | |||
it(' | it(' | ||
// ... | // ... | ||
})); | })); | ||
</ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ====== Testing DOM Interaction and Routing Components ====== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Sources ====== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
web/javascript/angular/unittests.1560214850.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)