Skip to content

Commit

Permalink
[TEST] Added a failing test for escaped quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajasegar committed Jan 12, 2020
1 parent b07e9e8 commit 2babaac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions transforms/angle-brackets/transform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1164,3 +1164,15 @@ test('No telemetry', () => {
"
`);
});

test('escaped-quotes', () => {
let input = `
{{foo-bar placeholder="Choose a \"thing\" here"}}
`;

expect(runTest('escaped-quotes', input, {}, {})).toMatchInlineSnapshot(`
"
<FooBar @placeholder=\\"Choose a \\"thing\\" here\\" />
"
`);
});

0 comments on commit 2babaac

Please sign in to comment.