Commit 2005b0d
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 2005b0d
2 files changed
Lines changed: 26 additions & 21 deletions
File tree
- test
- __snapshots__
- templates/good/optional-nested
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3506 | 3506 | | |
3507 | 3507 | | |
3508 | 3508 | | |
3509 | | - | |
| 3509 | + | |
3510 | 3510 | | |
3511 | 3511 | | |
3512 | | - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
3513 | 3516 | | |
3514 | 3517 | | |
3515 | | - | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
3516 | 3523 | | |
3517 | 3524 | | |
3518 | | - | |
3519 | | - | |
3520 | | - | |
3521 | | - | |
3522 | | - | |
3523 | | - | |
3524 | | - | |
3525 | | - | |
3526 | | - | |
3527 | | - | |
3528 | | - | |
3529 | | - | |
3530 | | - | |
3531 | | - | |
3532 | | - | |
3533 | | - | |
3534 | | - | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
3535 | 3529 | | |
3536 | 3530 | | |
3537 | 3531 | | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
3538 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
3539 | 3539 | | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
3540 | 3545 | | |
3541 | 3546 | | |
3542 | 3547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments