2020-02-11 17:44:17 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @jsx: react
|
|
|
|
// @filename: main.tsx
|
|
|
|
|
2020-03-18 17:54:17 +01:00
|
|
|
//// let foo = <div>}</div>;
|
2020-02-11 17:44:17 +01:00
|
|
|
|
|
|
|
verify.codeFix({
|
2020-03-18 17:54:17 +01:00
|
|
|
description: ts.Diagnostics.Wrap_invalid_character_in_an_expression_container.message,
|
|
|
|
newFileContent: `let foo = <div>{"}"}</div>;`,
|
2020-02-11 17:44:17 +01:00
|
|
|
index: 0,
|
|
|
|
});
|
2020-03-18 17:54:17 +01:00
|
|
|
|
2020-02-11 17:44:17 +01:00
|
|
|
verify.codeFix({
|
2020-03-18 17:54:17 +01:00
|
|
|
description: ts.Diagnostics.Convert_invalid_character_to_its_html_entity_code.message,
|
|
|
|
newFileContent: `let foo = <div>}</div>;`,
|
2020-02-11 17:44:17 +01:00
|
|
|
index: 1,
|
|
|
|
});
|