diff options
author | Hsuan Lee <boczeratul@gmail.com> | 2019-04-08 15:17:20 +0800 |
---|---|---|
committer | Hsuan Lee <boczeratul@gmail.com> | 2019-04-08 15:17:20 +0800 |
commit | 180942ed527a351c28cc2a418c1528c4e5aaa33e (patch) | |
tree | d76e9dba7a59fbb1ea5e9dd3a0f453239790b5d4 /app/containers/App/__tests__ | |
parent | a5a621df50dee4bd472cb95dc6dfd824d4a48696 (diff) | |
download | dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar.gz dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar.bz2 dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar.lz dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar.xz dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.tar.zst dexon-lottery-180942ed527a351c28cc2a418c1528c4e5aaa33e.zip |
Add in webapp
Diffstat (limited to 'app/containers/App/__tests__')
-rw-r--r-- | app/containers/App/__tests__/index.test.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/containers/App/__tests__/index.test.js b/app/containers/App/__tests__/index.test.js new file mode 100644 index 0000000..33a48c9 --- /dev/null +++ b/app/containers/App/__tests__/index.test.js @@ -0,0 +1,24 @@ +import React from 'react'; +import { shallow } from 'enzyme'; +import { Route } from 'react-router-dom'; + +import Header from 'components/Header'; +import Footer from 'components/Footer'; +import App from '../index'; + +describe('<App />', () => { + it('should render the header', () => { + const renderedComponent = shallow(<App />); + expect(renderedComponent.find(Header).length).toBe(1); + }); + + it('should render some routes', () => { + const renderedComponent = shallow(<App />); + expect(renderedComponent.find(Route).length).not.toBe(0); + }); + + it('should render the footer', () => { + const renderedComponent = shallow(<App />); + expect(renderedComponent.find(Footer).length).toBe(1); + }); +}); |