Build: transform String.raw (#18134)
This commit is contained in:
1 parent
eca8348812
commit
b99012b48c
10 files changed
+147
-45
No files matched your search
@@ -109,3 +109,12 @@ test("Array#toReversed", () => {
|
||||
`"foo.toReversed(extraArgument)"`,
|
||||
);
|
||||
});
|
||||
|
||||
test("String.raw", () => {
|
||||
expect(transform("String.raw`\\\\\\uINVALID`")).toMatchInlineSnapshot(
|
||||
String.raw`""\\\\\\uINVALID""`,
|
||||
);
|
||||
expect(transform("String.raw`\\uINVALID${'world'}`")).toMatchInlineSnapshot(
|
||||
`" \`\\\\uINVALID\${'world'}\`"`,
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user