Skip to content

Commit 7e32382

Browse files
committed
fix lint
1 parent 51aed54 commit 7e32382

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ intellij
100100
invalidchar
101101
jammu
102102
jeong
103+
jiti
103104
jonathanawesome
104105
jsdelivr
105106
kumar

packages/graphql-language-service-server/src/__tests__/MessageProcessor.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,14 @@ describe('MessageProcessor', () => {
459459
{ definitions: result, printedName: 'example' },
460460
() => 'hello',
461461
);
462-
expect(customResult.uri).toEqual(`hello`);
462+
expect(customResult.uri).toEqual('hello');
463463

464464
const customResult2 = messageProcessor._getCustomLocateResult(
465465
project,
466466
{ definitions: result, printedName: 'example' },
467467
() => 'hello:2:4',
468468
);
469-
expect(customResult2.uri).toEqual(`hello`);
469+
expect(customResult2.uri).toEqual('hello');
470470
expect(customResult2.range.start.line).toEqual(2);
471471
expect(customResult2.range.start.character).toEqual(0);
472472
expect(customResult2.range.end.line).toEqual(4);
@@ -482,7 +482,7 @@ describe('MessageProcessor', () => {
482482
},
483483
}),
484484
);
485-
expect(customResult3.uri).toEqual(`hello1`);
485+
expect(customResult3.uri).toEqual('hello1');
486486
expect(customResult3.range.start.line).toEqual(2);
487487
expect(customResult3.range.start.character).toEqual(2);
488488
expect(customResult3.range.end.line).toEqual(4);

packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions-test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ describe('getAutocompleteSuggestions', () => {
545545
label: 'Foo',
546546
detail: 'Human',
547547
documentation: 'fragment Foo on Human',
548-
549548
labelDetails: { detail: 'fragment Foo on Human' },
550549
},
551550
]);
@@ -561,7 +560,6 @@ describe('getAutocompleteSuggestions', () => {
561560
label: 'Foo',
562561
detail: 'Human',
563562
documentation: 'fragment Foo on Human',
564-
565563
labelDetails: { detail: 'fragment Foo on Human' },
566564
},
567565
]);
@@ -854,19 +852,6 @@ describe('getAutocompleteSuggestions', () => {
854852
{ label: 'String' },
855853
]));
856854

857-
it('provides correct suggestions on object field w/ .graphqls', () =>
858-
expect(
859-
testSuggestions('type Type {\n aField: s', new Position(0, 23), [], {
860-
uri: 'schema.graphqls',
861-
ignoreInsert: true,
862-
}),
863-
).toEqual([
864-
{ label: 'Episode' },
865-
{ label: 'String' },
866-
{ label: 'TestInterface' },
867-
{ label: 'TestType' },
868-
{ label: 'TestUnion' },
869-
]));
870855
it('provides correct suggestions on object fields', () =>
871856
expect(
872857
testSuggestions('type Type {\n aField: s', new Position(0, 23), [], {

0 commit comments

Comments
 (0)