Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed May 19, 2024
1 parent 51aed54 commit 7e32382
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ intellij
invalidchar
jammu
jeong
jiti
jonathanawesome
jsdelivr
kumar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,14 @@ describe('MessageProcessor', () => {
{ definitions: result, printedName: 'example' },
() => 'hello',
);
expect(customResult.uri).toEqual(`hello`);
expect(customResult.uri).toEqual('hello');

const customResult2 = messageProcessor._getCustomLocateResult(
project,
{ definitions: result, printedName: 'example' },
() => 'hello:2:4',
);
expect(customResult2.uri).toEqual(`hello`);
expect(customResult2.uri).toEqual('hello');
expect(customResult2.range.start.line).toEqual(2);
expect(customResult2.range.start.character).toEqual(0);
expect(customResult2.range.end.line).toEqual(4);
Expand All @@ -482,7 +482,7 @@ describe('MessageProcessor', () => {
},
}),
);
expect(customResult3.uri).toEqual(`hello1`);
expect(customResult3.uri).toEqual('hello1');
expect(customResult3.range.start.line).toEqual(2);
expect(customResult3.range.start.character).toEqual(2);
expect(customResult3.range.end.line).toEqual(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ describe('getAutocompleteSuggestions', () => {
label: 'Foo',
detail: 'Human',
documentation: 'fragment Foo on Human',

labelDetails: { detail: 'fragment Foo on Human' },
},
]);
Expand All @@ -561,7 +560,6 @@ describe('getAutocompleteSuggestions', () => {
label: 'Foo',
detail: 'Human',
documentation: 'fragment Foo on Human',

labelDetails: { detail: 'fragment Foo on Human' },
},
]);
Expand Down Expand Up @@ -854,19 +852,6 @@ describe('getAutocompleteSuggestions', () => {
{ label: 'String' },
]));

it('provides correct suggestions on object field w/ .graphqls', () =>
expect(
testSuggestions('type Type {\n aField: s', new Position(0, 23), [], {
uri: 'schema.graphqls',
ignoreInsert: true,
}),
).toEqual([
{ label: 'Episode' },
{ label: 'String' },
{ label: 'TestInterface' },
{ label: 'TestType' },
{ label: 'TestUnion' },
]));
it('provides correct suggestions on object fields', () =>
expect(
testSuggestions('type Type {\n aField: s', new Position(0, 23), [], {
Expand Down

0 comments on commit 7e32382

Please sign in to comment.