Support Angular 20 (JS part) (#17534)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-05-29 15:03:17 +08:00
1 parent 8e75fde187
commit f037a2674c
11 files changed
+145 -26

No files matched your search

@@ -0,0 +1,85 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`exponentiation-operators.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
{{
(a) ** b
}}
=====================================output=====================================
{{ a ** b }}
================================================================================
`;
exports[`in-operators.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
{{
( (a in (b)))
}}
=====================================output=====================================
{{ a in b }}
================================================================================
`;
exports[`tagged-template-literal.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
{{
( (tag \` a \${ b } \\\\u0063 \`))
}}
=====================================output=====================================
{{ tag\` a \${b} \\\\u0063 \` }}
================================================================================
`;
exports[`template-literal.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
{{
( (\` a \${ b } \\\\u0063 \`))
}}
=====================================output=====================================
{{ \` a \${b} \\\\u0063 \` }}
================================================================================
`;
exports[`void-operators.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
{{
void (1 +2)
}}
=====================================output=====================================
{{ void (1 + 2) }}
================================================================================
`;
@@ -0,0 +1,3 @@
{{
(a) ** b
}}
@@ -0,0 +1 @@
runFormatTest(import.meta, ["angular"]);
@@ -0,0 +1,4 @@
{{
( (a in (b)))
}}
@@ -0,0 +1,4 @@
{{
( (tag ` a ${ b } \\u0063 `))
}}
@@ -0,0 +1,4 @@
{{
( (` a ${ b } \\u0063 `))
}}
@@ -0,0 +1,4 @@
{{
void (1 +2)
}}