Skip to content

Commit 96955ff

Browse files
committed
Minor tweaks
* typo * implicit any * unused imports * file name (+ 1 unrelated, but adjacent) * changelog
1 parent 5c7b1b5 commit 96955ff

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- `apollo-graphql`
2020
- <First `apollo-graphql` related entry goes here>
2121
- `apollo-language-server`
22-
- <First `apollo-language-server` related entry goes here>
22+
- Allow template literal placeholders that span multiple rows[#1299](https://github.com/apollographql/apollo-tooling/pull/1299)
2323
- `apollo-tools`
2424
- <First `apollo-tools` related entry goes here>
2525
- `vscode-apollo`

packages/apollo-language-server/src/__tests__/diagnostics.ts renamed to packages/apollo-language-server/src/__tests__/diagnostics.test.ts

File renamed without changes.

packages/apollo-language-server/src/__tests__/documents.ts renamed to packages/apollo-language-server/src/__tests__/document.test.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import { Source } from "graphql";
2-
import { loadSchema } from "apollo-codegen-core/lib/loading";
3-
import { GraphQLDocument, extractGraphQLDocuments } from "../document";
4-
import { collectExecutableDefinitionDiagnositics } from "../diagnostics";
1+
import { extractGraphQLDocuments } from "../document";
52
import { TextDocument, Position } from "vscode-languageserver";
6-
import { stripIndent } from "common-tags";
73

84
describe("extractGraphQLDocuments", () => {
9-
describe("extracting docuemnts from JavaScript template literals", () => {
10-
const mockTextDocument = (text): TextDocument => ({
5+
describe("extracting documents from JavaScript template literals", () => {
6+
const mockTextDocument = (text: string): TextDocument => ({
117
getText: jest.fn().mockReturnValue(text),
128
offsetAt(): number {
139
return 0;
@@ -54,14 +50,14 @@ describe("extractGraphQLDocuments", () => {
5450
}
5551
5652
\${Hero.fragments.character}
57-
53+
5854
{
5955
reviews(episode: NEWHOPE) {
6056
...ReviewList_reviews
6157
}
6258
}
63-
64-
\${ReviewList.fragments.reviews}
59+
60+
\${ReviewList.fragments.reviews}
6561
\`
6662
`);
6763
const documents = extractGraphQLDocuments(textDocument);

0 commit comments

Comments
 (0)