From 1975ad6ccd4879515cd5674506bbb9e5b3a541cb Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Sun, 16 Aug 2015 14:35:14 -0300 Subject: [PATCH] [Ivan Diaz] - Add jest and demo page --- app/js/Routes.js | 2 ++ app/js/components/__tests__/footer-test.js | 17 +++++++++++ app/js/pages/component-demo-page.js | 35 ++++++++++++++++++++++ package.json | 20 +++++++++++++ preprocessor.js | 17 +++++++++++ 5 files changed, 91 insertions(+) create mode 100644 app/js/components/__tests__/footer-test.js create mode 100644 app/js/pages/component-demo-page.js create mode 100644 preprocessor.js diff --git a/app/js/Routes.js b/app/js/Routes.js index 4d9399fe..a5b247e7 100644 --- a/app/js/Routes.js +++ b/app/js/Routes.js @@ -7,6 +7,7 @@ import App from './App'; import HomePage from './pages/HomePage'; import SearchPage from './pages/SearchPage'; import NotFoundPage from './pages/NotFoundPage'; +import DemoPage from './pages/component-demo-page'; export default ( @@ -15,6 +16,7 @@ export default ( + diff --git a/app/js/components/__tests__/footer-test.js b/app/js/components/__tests__/footer-test.js new file mode 100644 index 00000000..818688be --- /dev/null +++ b/app/js/components/__tests__/footer-test.js @@ -0,0 +1,17 @@ +jest.dontMock('../Footer.js'); + +import React from 'react/addons'; +import Footer from '../Footer.js'; +var TestUtils = React.addons.TestUtils; + +describe('Footer', () => { + it('should 2 equal 2', () => { + var footer = TestUtils.renderIntoDocument( +