|
1 | 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
2 | 2 |
|
| 3 | +exports[`arrow-function.html format 1`] = ` |
| 4 | +====================================options===================================== |
| 5 | +parsers: ["angular"] |
| 6 | + printWidth: 80 (default) | |
| 7 | +=====================================input====================================== |
| 8 | +@let fn = (a, b) => componentValue + a + b; |
| 9 | +One: {{fn(0, 1)}} |
| 10 | +
|
| 11 | +@if (true) { |
| 12 | + Two: {{fn(1, 1)}} |
| 13 | +
|
| 14 | + <button (click)=" componentValue = fn(2, 1)"></button> |
| 15 | + <button (click)=" componentValue => fn(2, 1)"></button> |
| 16 | +} |
| 17 | +
|
| 18 | +
|
| 19 | +{{[(a) => a + 1][0](1000)}} |
| 20 | +{{[(a ) => a + 1 + componentProp][0](1000)}} |
| 21 | +
|
| 22 | +
|
| 23 | +@let a = 1; |
| 24 | +
|
| 25 | +@if (true) { |
| 26 | + @let b = 2; |
| 27 | +
|
| 28 | + @if (true) { |
| 29 | + @let c = 3; |
| 30 | + {{(() => a + b + c)()}} |
| 31 | + } |
| 32 | +} |
| 33 | +
|
| 34 | +=====================================output===================================== |
| 35 | +@let fn = (a, b) => componentValue + a + b; One: {{ fn(0, 1) }} |
| 36 | +
|
| 37 | +@if (true) { |
| 38 | + Two: {{ fn(1, 1) }} |
| 39 | +
|
| 40 | + <button (click)="componentValue = fn(2, 1)"></button> |
| 41 | + <button (click)="(componentValue) => fn(2, 1)"></button> |
| 42 | +} |
| 43 | +
|
| 44 | +{{ [(a) => a + 1][0](1000) }} |
| 45 | +{{ [(a) => a + 1 + componentProp][0](1000) }} |
| 46 | +
|
| 47 | +@let a = 1; |
| 48 | +
|
| 49 | +@if (true) { |
| 50 | + @let b = 2; |
| 51 | +
|
| 52 | + @if (true) { |
| 53 | + @let c = 3; |
| 54 | + {{ (() => a + b + c)() }} |
| 55 | + } |
| 56 | +} |
| 57 | +
|
| 58 | +================================================================================ |
| 59 | +`; |
| 60 | +
|
3 | 61 | exports[`exponentiation-operators.html format 1`] = ` |
4 | 62 | ====================================options===================================== |
5 | 63 | parsers: ["angular"] |
@@ -33,6 +91,22 @@ printWidth: 80 |
33 | 91 | ================================================================================ |
34 | 92 | `; |
35 | 93 |
|
| 94 | +exports[`instanceof-operator.html format 1`] = ` |
| 95 | +====================================options===================================== |
| 96 | +parsers: ["angular"] |
| 97 | + printWidth: 80 (default) | |
| 98 | +=====================================input====================================== |
| 99 | +{{ |
| 100 | +
|
| 101 | + ( (a instanceof (b))) |
| 102 | +}} |
| 103 | +
|
| 104 | +=====================================output===================================== |
| 105 | +{{ a instanceof b }} |
| 106 | +
|
| 107 | +================================================================================ |
| 108 | +`; |
| 109 | +
|
36 | 110 | exports[`spread-element.html format 1`] = ` |
37 | 111 | ====================================options===================================== |
38 | 112 | parsers: ["angular"] |
|
0 commit comments