Commit 14544e4
authored
* fix(api): do nothing in clearMocks if __TAURI_INTERNALS__ is not defined (fix: #8179)
Prevents tests that didn't define any mocks from failing in `afterEach` test hook.
* Update fix-clearmocks.md
* check for indvidiual properties instead
1 parent 1d5aa38 commit 14544e4
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
0 commit comments