This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit 58ec247
committed
refactor(ngMock window.inject test): add testInjectCaller() usage comment
The results of this function, when called outside of a specific test spec
context, should not be reused in multiple tests as they may have stored
state that can cause unwanted test spec interaction. This explains why we
may need to wrap some tests into their own separate test suites instead
of grouping them all under a single shared one.1 parent 42cecb9 commit 58ec247
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
934 | 937 | | |
935 | 938 | | |
936 | 939 | | |
| |||
0 commit comments