Skip to content

Commit

Permalink
test: rename describe blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 committed Nov 19, 2023
1 parent 2db47e9 commit cf54cf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/handlers/GraphQLHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe('parse', () => {
})

describe('with a custom endpoint', () => {
describe('with matching endpoint', () => {
describe('when the request is to a matching endpoint', () => {
test('parses a query without variables (GET)', async () => {
const handler = new GraphQLHandler(
OperationTypeNode.QUERY,
Expand Down Expand Up @@ -343,7 +343,7 @@ describe('parse', () => {
})
})

describe('with unmatched endpoint', () => {
describe('when the request is to a non-matching endpoint', () => {
test('parses a query without variables (GET)', async () => {
const handler = new GraphQLHandler(
OperationTypeNode.QUERY,
Expand All @@ -356,7 +356,7 @@ describe('parse', () => {
{
query: GET_USER,
},
'https://mswjs.com/not-graphql',
'https://mswjs.com/some/other/endpoint',
)

expect(await handler.parse({ request })).toEqual({
Expand All @@ -381,7 +381,7 @@ describe('parse', () => {
userId: 'abc-123',
},
},
'https://mswjs.com/not-graphql',
'https://mswjs.com/some/other/endpoint',
)

expect(await handler.parse({ request })).toEqual({
Expand All @@ -403,7 +403,7 @@ describe('parse', () => {
{
query: GET_USER,
},
'https://mswjs.com/not-graphql',
'https://mswjs.com/some/other/endpoint',
)

expect(await handler.parse({ request })).toEqual({
Expand Down

0 comments on commit cf54cf7

Please sign in to comment.