Skip to content

Commit

Permalink
Merge branch 'main' into gh-eng-2963-migrate-useOktaConfig-to-tsq-v5
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov authored Jan 28, 2025
2 parents 39496f8 + 4b05dff commit 45565c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ const mockNavigatorData = {
},
}

const mockOwnerContext = { owner: { ownerid: 123 } }

const mockRepoContext = {
owner: {
repository: { __typename: 'Repository', repoid: 321, private: false },
},
}

const queryClient = new QueryClient({
defaultOptions: { queries: { retry: false } },
})
Expand Down Expand Up @@ -249,6 +257,12 @@ describe('App', () => {
}),
graphql.query('NavigatorData', () => {
return HttpResponse.json({ data: mockNavigatorData })
}),
graphql.query('OwnerContext', () => {
return HttpResponse.json({ data: mockOwnerContext })
}),
graphql.query('RepoContext', () => {
return HttpResponse.json({ data: mockRepoContext })
})
)
}
Expand Down

0 comments on commit 45565c5

Please sign in to comment.