Commit b7a8f8f
doc: fix incorrect test runner mock examples
The CJS mock.timers.setTime example asserted the timer ran right after
setTime() with no tick() call, which contradicts the documented behavior
and the ESM example above it. The mock.module example called .fn() on an
export named foo. Both threw if run.
Signed-off-by: Emmanuel Yusufu Kimaswa <kimaswaemma36@gmail.com>
PR-URL: #63656
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Jacob Smith <jacob@frende.me>1 parent c757e3e commit b7a8f8f
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
| 1171 | + | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1184 | 1187 | | |
1185 | 1188 | | |
1186 | 1189 | | |
| |||
2631 | 2634 | | |
2632 | 2635 | | |
2633 | 2636 | | |
2634 | | - | |
2635 | | - | |
| 2637 | + | |
| 2638 | + | |
2636 | 2639 | | |
2637 | 2640 | | |
2638 | 2641 | | |
| |||
2642 | 2645 | | |
2643 | 2646 | | |
2644 | 2647 | | |
2645 | | - | |
2646 | | - | |
| 2648 | + | |
| 2649 | + | |
2647 | 2650 | | |
2648 | 2651 | | |
2649 | 2652 | | |
| |||
0 commit comments