Skip to content

Commit

Permalink
variable type hover test
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed May 18, 2024
1 parent b08cebc commit 97c0b2d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ describe('getHoverInformation', () => {
expect(actual).toEqual('Query.parameterizedField(id: String!)');
});

it('provides variable type information', () => {
const actual = testHover(
'query($who: String!) { parameterizedField(id: $who) { testField } }',
new Position(0, 48),
);
expect(actual).toEqual('String!');
});

it('provides directive information', () => {
const actual = testHover(
'query { thing { testField @skip(if:true) } }',
Expand Down

0 comments on commit 97c0b2d

Please sign in to comment.