فهرست منبع

clean up onClick test

Kirk Trombley 4 سال پیش
والد
کامیت
e27b5b1f27
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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" })
     );