Skip to content

Commit

Permalink
Fix typo in error message (#11163)
Browse files Browse the repository at this point in the history
  • Loading branch information
bignimbus authored Aug 24, 2023
1 parent a8fe0a1 commit a8a9e11
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-balloons-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Fix typo in error message: "occured" -> "occurred"
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useBackgroundQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,7 @@ describe("useBackgroundQuery", () => {
});

// Because we switched to a `no-cache` fetch policy, we should not see the
// newly fetched data in the cache after the fetch occured.
// newly fetched data in the cache after the fetch occurred.
expect(cache.readQuery({ query })).toEqual({
character: {
__typename: "Character",
Expand Down
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ describe("useQuery Hook", () => {
});
});

it("calls `onError` when a network error has occured", async () => {
it("calls `onError` when a network error has occurred", async () => {
const query = gql`
{
hello
Expand Down
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useSuspenseQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6392,7 +6392,7 @@ describe("useSuspenseQuery", () => {
});

// Because we switched to a `no-cache` fetch policy, we should not see the
// newly fetched data in the cache after the fetch occured.
// newly fetched data in the cache after the fetch occurred.
expect(cache.extract()[cacheKey]).toEqual({
__typename: "Character",
id: "1",
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/globals/invariantWrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function getErrorMsg(message?: string | number, messageArgs: unknown[] = []) {
return (
(global[ApolloErrorMessageHandler] &&
global[ApolloErrorMessageHandler](message, args)) ||
`An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(
`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(
JSON.stringify({
version,
message,
Expand Down

0 comments on commit a8a9e11

Please sign in to comment.