From 75a15d57a99ec3c26f383cf99e727db80af63500 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sat, 13 Mar 2021 20:13:33 +0300 Subject: [PATCH] add frontend stub test --- client/src/components/user/InputField.test.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 client/src/components/user/InputField.test.js diff --git a/client/src/components/user/InputField.test.js b/client/src/components/user/InputField.test.js new file mode 100644 index 0000000..b56d996 --- /dev/null +++ b/client/src/components/user/InputField.test.js @@ -0,0 +1,17 @@ +import React from "react"; +import ReactDOM from "react-dom"; +import InputField from "./InputField"; + +it("renders without crashing", () => { + const div = document.createElement("div"); + ReactDOM.render( + } + meta={{ touched: false, error: "" }} + type="password" + />, + div, + ); +});