Repository navigation
Commit 3436f92
fix(@schematics/angular): keep the meaning of negated toHaveBeenCalledOnceWith in refactor-jasmine-vitest
`expect(spy).not.toHaveBeenCalledOnceWith(...)` was split into
`not.toHaveBeenCalledTimes(1)` and `not.toHaveBeenCalledWith(...)`, which asserts
that neither condition holds instead of not both. For example, a spy called twice
with the same arguments passed before the migration and failed after it.
Transform the negated form to `not.toHaveBeenCalledExactlyOnceWith(...)`, which
has the same meaning.1 parent ed38464 commit 3436f92
2 files changed
Lines changed: 27 additions & 3 deletions
File tree
- packages/schematics/angular/refactor/jasmine-vitest/transformers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
477 | 499 | | |
478 | 500 | | |
479 | 501 | | |
480 | 502 | | |
481 | 503 | | |
482 | 504 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | 505 | | |
487 | 506 | | |
488 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
0 commit comments