diff --git a/src/components/gamePlayConsole/GamePlayConsole.test.tsx b/src/components/gamePlayConsole/GamePlayConsole.test.tsx new file mode 100644 index 0000000..49e47fd --- /dev/null +++ b/src/components/gamePlayConsole/GamePlayConsole.test.tsx @@ -0,0 +1,28 @@ +import "@testing-library/jest-dom/extend-expect"; +import React from "react"; +import {render} from "@testing-library/react"; +import GamePlayConsole from "./GamePlayConsole"; +import { GamePlayMode } from "../../events/core"; + +it("renders acceptance letter when asked to", () => { + const {getByText} = render( + + ); + + expect(getByText("Congratulations! Please accept this offer of admission to UBC.")).toBeInTheDocument(); + {/* expect(getByText("Please accept this offer")).toBeInTheDocument(); */} +}); + +it("renders comic when asked to", () => { + const {getByText} = render( + + ); + + expect(getByText("Please accept this offer")).not.toBeInTheDocument(); +});