diff --git a/react/testapp/src/test/appContent.test.js b/react/testapp/src/test/appContent.test.js index 6b55cb6..b1c8cf0 100644 --- a/react/testapp/src/test/appContent.test.js +++ b/react/testapp/src/test/appContent.test.js @@ -1,6 +1,6 @@ import React from "react"; import Adapter from 'enzyme-adapter-react-16'; -import Enzyme, {shallow} from "enzyme"; +import Enzyme, {shallow, mount} from "enzyme"; import App from "../App"; import {ValueInput} from "../component/ValueInput"; @@ -10,4 +10,16 @@ it("Renders three ValueInputs", () => { const wrapper = shallow(); const valCount = wrapper.find(ValueInput).length; expect(valCount).toBe(3) -}); \ No newline at end of file +}); + +it("Fully renders three inputs", () => { + const wrapper = mount(); + const count = wrapper.find("input.form-control").length; + expect(count).toBe(3); +}); + +it("Shallow renders zero inputs", () => { + const wrapper = shallow(); + const count = wrapper.find("input.form-control").length; + expect(count).toBe(0); +}) \ No newline at end of file