Skip to content

Commit

Permalink
Default to false for boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 9, 2024
1 parent 5019939 commit e9d84ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/link/error/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("error handling", () => {
}
`;

let called!: boolean;
let called = false;
const errorLink = onError(({ graphQLErrors, networkError }) => {
expect(graphQLErrors![0].message).toBe("resolver blew up");
called = true;
Expand Down Expand Up @@ -51,7 +51,7 @@ describe("error handling", () => {
}
`;

let called!: boolean;
let called = false;
const errorLink = onError(({ operation, networkError }) => {
expect(networkError!.message).toBe("app is crashing");
expect(operation.operationName).toBe("Foo");
Expand Down

0 comments on commit e9d84ba

Please sign in to comment.