-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add 404 page [Finishes #161290958]
- Loading branch information
Showing
17 changed files
with
104 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
import Header from '../common/Header'; | ||
|
||
const NotFound = () => ( | ||
<div> | ||
<Header /> | ||
<h1>404 Page Not Found!</h1> | ||
</div> | ||
); | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import NotFound from '../../../../src/components/404/NotFound'; | ||
|
||
test('NotFound snapshot test', () => { | ||
const component = shallow(<NotFound />); | ||
expect(component).toMatchSnapshot(); | ||
}); |
10 changes: 10 additions & 0 deletions
10
tests/src/components/404/__snapshots__/NotFound.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`NotFound snapshot test 1`] = ` | ||
<div> | ||
<Header /> | ||
<h1> | ||
404 Page Not Found! | ||
</h1> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Header from '../../../../src/components/common/Header'; | ||
|
||
test('Header snapshot test', () => { | ||
const component = renderer.create(<Router><Header /></Router>); | ||
const tree = component.toJSON(); | ||
// eslint-disable-next-line no-undef | ||
expect(tree).toMatchSnapshot(); | ||
const component = shallow(<Header />); | ||
expect(component).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Home from '../../../../src/components/home/HomePage'; | ||
import HomePage from '../../../../src/components/home/HomePage'; | ||
|
||
test('Home snapshot test', () => { | ||
const component = renderer.create(<Router><Home /></Router>); | ||
const tree = component.toJSON(); | ||
// eslint-disable-next-line no-undef | ||
expect(tree).toMatchSnapshot(); | ||
const component = shallow(<HomePage />); | ||
expect(component).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Login from '../../../../src/components/login/LoginPage'; | ||
import LoginPage from '../../../../src/components/login/LoginPage'; | ||
|
||
test('Login snapshot test', () => { | ||
const component = renderer.create(<Router><Login /></Router>); | ||
const tree = component.toJSON(); | ||
// eslint-disable-next-line no-undef | ||
expect(tree).toMatchSnapshot(); | ||
const component = shallow(<LoginPage />); | ||
expect(component).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import NavBar from '../../../../src/components/navigation/NavBar'; | ||
|
||
test('NavBar snapshot test', () => { | ||
const component = renderer.create(<Router><NavBar /></Router>); | ||
const tree = component.toJSON(); | ||
// eslint-disable-next-line no-undef | ||
expect(tree).toMatchSnapshot(); | ||
const component = shallow(<NavBar />); | ||
expect(component).toMatchSnapshot(); | ||
}); |
Oops, something went wrong.