Commit ba19c61
committed
fix: use stub for console methods if they don't exist
- Check if console.log/error/warn exist before deciding spy vs stub
- Use stub if property doesn't exist, spy if it does
- This should fix the remaining 2 test failures
9/11 tests are now passing, just need to fix these console spy issues.1 parent d31d5ec commit ba19c61
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
196 | 191 | | |
197 | 192 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
201 | 196 | | |
202 | 197 | | |
0 commit comments