Add test with backslash

This commit is contained in:
Andy Hanson 2016-09-09 06:32:45 -07:00
parent 9ae98d6a37
commit aa322ea18a
4 changed files with 35 additions and 0 deletions

View File

@ -50,6 +50,13 @@ var p = 0;
</div>;
// Emit "hello\\ world"
<div>
hello\
world
</div>;
//// [file.js]
@ -77,3 +84,5 @@ React.createElement("div", null, "3");
React.createElement("div", null);
// Emit "foo bar"
React.createElement("div", null, "foo bar");
// Emit "hello\\ world"
React.createElement("div", null, "hello\\ world");

View File

@ -90,4 +90,13 @@ var p = 0;
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
// Emit "hello\\ world"
<div>
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
hello\
world
</div>;
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))

View File

@ -100,4 +100,14 @@ var p = 0;
</div>;
>div : any
// Emit "hello\\ world"
<div>
><div> hello\world</div> : JSX.Element
>div : any
hello\
world
</div>;
>div : any

View File

@ -51,3 +51,10 @@ var p = 0;
</div>;
// Emit "hello\\ world"
<div>
hello\
world
</div>;