Merge development (#86)

This commit is contained in:
John Wu
2021-09-13 09:15:20 -07:00
committed by GitHub
parent 74eb2707a3
commit 680280dbf2
32 changed files with 465 additions and 466 deletions

View File

@@ -1,5 +1,5 @@
jest.mock("../../services/auth");
jest.mock("../../services/timer");
jest.mock("../../services/getTimerWorker");
import {
render,
@@ -10,7 +10,7 @@ import {
} from "@testing-library/react";
import { UserProvider, useUserContext } from "../Contexts/UserContext";
import auth from "../../services/auth";
import getTimerWorker from "../../services/timer";
import getTimerWorker from "../../services/getTimerWorker";
import { TEST_AUTH_OBJECT, TEST_EXPECTED_GROUPS } from "../../utils/testing";
const INVALID_TOKEN_RESPONSE = {
@@ -125,14 +125,8 @@ describe("UseContext", () => {
describe("Signout", () => {
beforeEach(async () => {
const TestComp = () => {
const {
signIn,
signOut,
error,
token,
groups,
fetching,
} = useUserContext();
const { signIn, signOut, error, token, groups, fetching } =
useUserContext();
return (
<>
<div data-testid="error">{error}</div>