Skip to content

Commit

Permalink
Minor change to name of some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 21, 2022
1 parent 7dd28bc commit 43b532b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ describe('client', () => {
.then(resolve, reject);
});

it('removes client fields from the query before it reaches the link', async () => {
it('removes @client fields from the query before it reaches the link', async () => {
const result: { current: Operation | undefined } = {
current: undefined
}
Expand Down Expand Up @@ -989,7 +989,7 @@ describe('client', () => {
expect(print(result.current!.query)).toEqual(print(transformedQuery));
});

it('sends client fields to the link when defaultOptions.transformQuery.removeClientFields is `false`', async () => {
it('sends @client fields to the link when defaultOptions.transformQuery.removeClientFields is `false`', async () => {
const result: { current: Operation | undefined } = {
current: undefined
};
Expand Down
4 changes: 2 additions & 2 deletions src/core/__tests__/QueryManager/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ describe('Link interactions', () => {
});
});

it('removes client fields from the query before it reaches the link', async () => {
it('removes @client fields from the query before it reaches the link', async () => {
const result: { current: Operation | undefined } = {
current: undefined
};
Expand Down Expand Up @@ -409,7 +409,7 @@ describe('Link interactions', () => {
expect(print(result.current!.query)).toEqual(print(expectedQuery))
});

it('sends client directives to the link when defaultOptions.transformQuery.removeClientFields is false', async () => {
it('sends @client fields to the link when defaultOptions.transformQuery.removeClientFields is false', async () => {
const result: { current: Operation | undefined } = {
current: undefined
};
Expand Down
2 changes: 1 addition & 1 deletion src/link/batch-http/__tests__/batchHttpLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ describe('SharedHttpTest', () => {
);
});

it('removes client fields from the query before sending it to the server', async () => {
it('removes @client fields from the query before sending it to the server', async () => {
fetchMock.mock('https://example.com/graphql', {
status: 200,
body: JSON.stringify({
Expand Down
2 changes: 1 addition & 1 deletion src/link/http/__tests__/HttpLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ describe('HttpLink', () => {
);
});

it('removes client fields from the query before sending it to the server', async () => {
it('removes @client fields from the query before sending it to the server', async () => {
fetchMock.mock('https://example.com/graphql', {
status: 200,
body: JSON.stringify({
Expand Down

0 comments on commit 43b532b

Please sign in to comment.