diff --git a/custom-words.txt b/custom-words.txt index c46363665b..2bbbb473de 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -100,6 +100,7 @@ intellij invalidchar jammu jeong +jiti jonathanawesome jsdelivr kumar diff --git a/packages/graphql-language-service-server/src/__tests__/MessageProcessor.test.ts b/packages/graphql-language-service-server/src/__tests__/MessageProcessor.test.ts index 1a109c939b..381d7755b8 100644 --- a/packages/graphql-language-service-server/src/__tests__/MessageProcessor.test.ts +++ b/packages/graphql-language-service-server/src/__tests__/MessageProcessor.test.ts @@ -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); @@ -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); diff --git a/packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions-test.ts b/packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions-test.ts index 9b8c51bb1b..e784200f9b 100644 --- a/packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions-test.ts +++ b/packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions-test.ts @@ -545,7 +545,6 @@ describe('getAutocompleteSuggestions', () => { label: 'Foo', detail: 'Human', documentation: 'fragment Foo on Human', - labelDetails: { detail: 'fragment Foo on Human' }, }, ]); @@ -561,7 +560,6 @@ describe('getAutocompleteSuggestions', () => { label: 'Foo', detail: 'Human', documentation: 'fragment Foo on Human', - labelDetails: { detail: 'fragment Foo on Human' }, }, ]); @@ -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), [], {