|
@@ -1,15 +1,13 @@
|
|
|
-import React from "react";
|
|
|
import { shallow } from "enzyme";
|
|
|
+import React from "react";
|
|
|
import GameCreationForm from "../components/util/GameCreationForm";
|
|
|
-import { URBAN } from "../domain/genMethods";
|
|
|
-import { FROZEN } from "../domain/ruleSets";
|
|
|
+import { createGame } from "../domain/apiMethods";
|
|
|
+import { FROZEN, URBAN } from "../domain/constants";
|
|
|
+import useCountryLookup from "../hooks/useCountryLookup";
|
|
|
|
|
|
jest.mock("../domain/apiMethods");
|
|
|
jest.mock("../hooks/useCountryLookup");
|
|
|
|
|
|
-import { createGame } from "../domain/apiMethods";
|
|
|
-import useCountryLookup from "../hooks/useCountryLookup";
|
|
|
-
|
|
|
describe("GameCreationForm", () => {
|
|
|
it("renders", () => {
|
|
|
useCountryLookup.mockReturnValue("country-lookup");
|