Skip to content

Commit

Permalink
Don't set unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro committed Aug 7, 2024
1 parent 4689d3c commit 62a2944
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/jest/context/AppContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("AppContext", () => {
const wrapper = componentWithProviders({ contextProviderProps });

it("provides useAppContext context hook", () => {
const { result, waitFor } = renderHook(() => useAppContext(), { wrapper });
const { result } = renderHook(() => useAppContext(), { wrapper });
const value = result.current;
expect(value.csrfToken).toEqual(expectedCsrfToken);
expect(value.admin.email).toEqual(expectedEmail);
Expand All @@ -44,26 +44,26 @@ describe("AppContext", () => {
});

it("provides useAppAdmin context hook", () => {
const { result, waitFor } = renderHook(() => useAppAdmin(), { wrapper });
const { result } = renderHook(() => useAppAdmin(), { wrapper });
const admin = result.current;
expect(admin.email).toEqual(expectedEmail);
expect(admin.roles).toEqual(expectedRoles);
});

it("provides useAppEmail context hook", () => {
const { result, waitFor } = renderHook(() => useAppEmail(), { wrapper });
const { result } = renderHook(() => useAppEmail(), { wrapper });
const email = result.current;
expect(email).toEqual(expectedEmail);
});

it("provides useCsrfToken context hook", () => {
const { result, waitFor } = renderHook(() => useCsrfToken(), { wrapper });
const { result } = renderHook(() => useCsrfToken(), { wrapper });
const token = result.current;
expect(token).toEqual(expectedCsrfToken);
});

it("provides useAppFeatureFlags context hook", () => {
const { result, waitFor } = renderHook(() => useAppFeatureFlags(), {
const { result } = renderHook(() => useAppFeatureFlags(), {
wrapper,
});
const flags = result.current;
Expand Down

0 comments on commit 62a2944

Please sign in to comment.