Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Dec 18, 2024
1 parent 8ce54a2 commit 7d02d54
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/cli-kit/src/public/node/api/graphql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ beforeEach(async () => {

describe('graphqlRequest', () => {
test('calls debugLogRequestInfo once', async () => {
// Given
const retryAwareSpy = vi.spyOn(api, 'retryAwareRequest')

// When
await graphqlRequest({
query: 'query',
Expand All @@ -62,12 +59,6 @@ describe('graphqlRequest', () => {
},
})
expect(debugRequest.debugLogRequestInfo).toHaveBeenCalledOnce()
const receivedObject = {
request: expect.any(Function),
url: mockedAddress,
}

expect(retryAwareSpy).toHaveBeenCalledWith(receivedObject, expect.any(Function), undefined)
})

test('Logs the request ids to metadata and requestIdCollection', async () => {
Expand Down

0 comments on commit 7d02d54

Please sign in to comment.