created component

This commit is contained in:
soyed 2021-03-28 18:49:31 -04:00
parent b272111036
commit cbf13f5316
5 changed files with 21 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import ReactDOM from "react-dom";
import "./index.css"; import "./index.css";
import App from "./App"; import App from "./App";
import reportWebVitals from "./reportWebVitals"; import reportWebVitals from "./reportWebVitals";
import "bootstrap/dist/css/bootstrap.min.css";
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>

View file

@ -0,0 +1 @@
export { default } from "./navBar";

View file

View file

@ -0,0 +1,9 @@
import React, { Component } from "react";
class NavBar extends Component {
render() {
return <div>NavBar</div>;
}
}
export default NavBar;

View file

@ -0,0 +1,10 @@
import React from "react";
import { shallow } from "enzyme";
import NavBar from "./navBar";
describe("NavBar", () => {
test("matches snapshot", () => {
const wrapper = shallow(<NavBar />);
expect(wrapper).toMatchSnapshot();
});
});