mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
add frontend stub test
This commit is contained in:
17
client/src/components/user/InputField.test.js
Normal file
17
client/src/components/user/InputField.test.js
Normal file
@@ -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(
|
||||||
|
<InputField
|
||||||
|
required
|
||||||
|
label="test"
|
||||||
|
input={<input />}
|
||||||
|
meta={{ touched: false, error: "" }}
|
||||||
|
type="password"
|
||||||
|
/>,
|
||||||
|
div,
|
||||||
|
);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user