Skip to content

Commit

Permalink
Expand test and remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 26, 2024
1 parent 7858ec1 commit a3a18f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/vscode-graphql-syntax/tests/__fixtures__/test.js
Expand Up @@ -38,6 +38,9 @@ const graphql = graphql(`

const query = /* GraphQL */ 'query { id } ';
const query = graphql('query { id } ');
const query = graphql(
'query { id } '
);

const queryWithInlineComment = `#graphql
query {
Expand All @@ -58,7 +61,6 @@ const queryWithInlineComment = `#graphql
}
}
`;
// TODO: fix this
const queryWithInlineComment = `
#graphql
query {
Expand Down
Expand Up @@ -173,6 +173,21 @@ id | meta.embedded.block.graphql meta.select
| meta.embedded.block.graphql
' | meta.embedded.block.graphql punctuation.definition.string.template.end.js
) |
; |
const query = graphql |
( |
| meta.embedded.block.graphql
' | meta.embedded.block.graphql punctuation.definition.string.template.begin.js
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
{ | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
id | meta.embedded.block.graphql meta.selectionset.graphql variable.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
} | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql
' | meta.embedded.block.graphql punctuation.definition.string.template.end.js
) |
; |
|
const queryWithInlineComment = |
Expand Down Expand Up @@ -270,7 +285,6 @@ something | taggedTemplates meta.embedded.block.gra
} | taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
\` | taggedTemplates punctuation.definition.string.template.end.js
; |
// TODO: fix this |
const queryWithInlineComment = \` |
#graphql |
query { |
Expand Down

0 comments on commit a3a18f3

Please sign in to comment.