Merge branch 'master' of https://github.com/ArcticHawk1/SEG3125-LAB8 into homepage
This commit is contained in:
commit
0bf16db12f
4 changed files with 20 additions and 0 deletions
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