Explorar o código

clean up onClick test

Kirk Trombley %!s(int64=4) %!d(string=hai) anos
pai
achega
e27b5b1f27
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/src/tests/GuessPane.test.js

+ 1 - 1
client/src/tests/GuessPane.test.js

@@ -50,7 +50,7 @@ describe("GuessPane", () => {
     });
     // check submit enabled
     expect(handle).toMatchSnapshot();
-    await handle.find("button").first().prop("onClick")();
+    await handle.find("button").first().simulate("click");
     expect(reverseGeocode).toHaveBeenCalledWith(
       expect.objectContaining({ lat: "lat", lng: "lng" })
     );