Commit 2eddeda
committed
lib: test for fetch mock without prior invocation
The purpose of this test is to verify the correct behavior of stubbing
the globalThis.fetch method with custom implementation. It checks
whether the stubbed fetch function correctly returns the expected
response without calling fetch iteself first.1 parent 5c6a889 commit 2eddeda
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments