Commit bd7453d
committed
fix(template): guard optional property in nested test
The optional-nested test was failing after stricter optional property checks were added. This change wraps the 'age' variable in the template with an optional guard to align with the model.
Fixes #112
Signed-off-by: OmarElzero <omarmohmed7659944@gmail.com>1 parent d25a21a commit bd7453d
2 files changed
Lines changed: 15 additions & 4 deletions
File tree
- test
- __snapshots__
- templates/good/optional-nested
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3522 | 3522 | | |
3523 | 3523 | | |
3524 | 3524 | | |
3525 | | - | |
| 3525 | + | |
3526 | 3526 | | |
| 3527 | + | |
3527 | 3528 | | |
3528 | | - | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
3529 | 3539 | | |
3530 | 3540 | | |
3531 | 3541 | | |
| |||
3577 | 3587 | | |
3578 | 3588 | | |
3579 | 3589 | | |
3580 | | - | |
| 3590 | + | |
3581 | 3591 | | |
3582 | 3592 | | |
3583 | 3593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments