Skip to content

Commit

Permalink
Add more tests of text before and after
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Dec 10, 2021
1 parent 191aa68 commit 1786d5e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/cases/fourslash/jsxAttributeAsTagNameNoSnippet.ts
Expand Up @@ -11,6 +11,17 @@
//// <butto/*1*/
//// </>;
////}
////function fn2() {
//// return <>
//// preceding junk <butto/*2*/
//// </>;
////}
////function fn3() {
//// return <>
//// <butto/*3*/ style=""
//// </>;
////}



verify.completions(
Expand All @@ -25,4 +36,26 @@ verify.completions(
includeCompletionsWithInsertText: true,
}
},
{
marker: "2",
includes: [
{ name: "button", insertText: undefined, isSnippet: undefined }
],
preferences: {
jsxAttributeCompletionStyle: "braces",
includeCompletionsWithSnippetText: true,
includeCompletionsWithInsertText: true,
}
},
{
marker: "3",
includes: [
{ name: "button", insertText: undefined, isSnippet: undefined }
],
preferences: {
jsxAttributeCompletionStyle: "braces",
includeCompletionsWithSnippetText: true,
includeCompletionsWithInsertText: true,
}
},
);

0 comments on commit 1786d5e

Please sign in to comment.