Commit 0e56cb6
committed
use jasmine spyOn instead of ts-mockito spy for questionDoc
simply doing `spy(await env.getQuestionDoc('q6Id'))` with ts-mockito
spy results in later errors:
> Error: Uncaught (in promise): TypeError: Cannot read
properties of undefined (reading 'get')
> TypeError: Cannot read properties of undefined (reading 'get')
> at Spy.getEmptyMethodStub
(node_modules/ts-mockito/lib/Spy.js:41:48)
Perhaps more awaiting needed to happen first for something to be
populated. Not being able to pin it down, there was instead success in
moving to jasmine spyOn.1 parent bfed433 commit 0e56cb6
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2292 | 2292 | | |
2293 | 2293 | | |
2294 | 2294 | | |
2295 | | - | |
| 2295 | + | |
| 2296 | + | |
2296 | 2297 | | |
2297 | | - | |
| 2298 | + | |
| 2299 | + | |
2298 | 2300 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
| 2301 | + | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | 2304 | | |
| |||
0 commit comments