created component
This commit is contained in:
parent
028c8a6e3d
commit
07e9347517
5 changed files with 21 additions and 0 deletions
|
@ -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>
|
||||||
|
|
1
src/shared-components/navBar/index.js
Normal file
1
src/shared-components/navBar/index.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export { default } from "./navBar";
|
0
src/shared-components/navBar/navBar.css
Normal file
0
src/shared-components/navBar/navBar.css
Normal file
9
src/shared-components/navBar/navBar.js
Normal file
9
src/shared-components/navBar/navBar.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import React, { Component } from "react";
|
||||||
|
|
||||||
|
class NavBar extends Component {
|
||||||
|
render() {
|
||||||
|
return <div>NavBar</div>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default NavBar;
|
10
src/shared-components/navBar/navBar.test.js
Normal file
10
src/shared-components/navBar/navBar.test.js
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in a new issue