Add a test for angular interpolation (#17433)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-05-15 11:35:10 +08:00
1 parent 2349a6ee6f
commit 4cd55a287d
3 files changed
+20

No files matched your search

@@ -0,0 +1 @@
(there is no {{`${activityType === '' ? 'activity' : ''}${activityType === '' && costCenter === '' ? ' or ' : ''}${costCenter === '' ? 'cost center' : ''}`}})
@@ -0,0 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`17428.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80
| printWidth
=====================================input======================================
(there is no {{\`\${activityType === '' ? 'activity' : ''}\${activityType === '' && costCenter === '' ? ' or ' : ''}\${costCenter === '' ? 'cost center' : ''}\`}})
=====================================output=====================================
(there is no
{{
\`\${activityType === "" ? "activity" : ""}\${activityType === "" && costCenter === "" ? " or " : ""}\${costCenter === "" ? "cost center" : ""}\`
}})
================================================================================
`;
@@ -0,0 +1 @@
runFormatTest(import.meta, ["angular"]);