From cf0d7661ca85bfaedf0cfd2b1a3fa2a4b00a6ddc Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Fri, 23 Mar 2018 12:49:14 -0700 Subject: [PATCH] Introduce IFQLPage container --- ui/src/ifql/containers/IFQLPage.tsx | 9 +++++++++ ui/test/ifql/containers/IFQLPage.test.tsx | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 ui/src/ifql/containers/IFQLPage.tsx create mode 100644 ui/test/ifql/containers/IFQLPage.test.tsx diff --git a/ui/src/ifql/containers/IFQLPage.tsx b/ui/src/ifql/containers/IFQLPage.tsx new file mode 100644 index 0000000000..55fd584b3c --- /dev/null +++ b/ui/src/ifql/containers/IFQLPage.tsx @@ -0,0 +1,9 @@ +import React, {PureComponent} from 'react' + +class IFQLPage extends PureComponent<{}, {}> { + public render() { + return
Let's all build together
+ } +} + +export default IFQLPage diff --git a/ui/test/ifql/containers/IFQLPage.test.tsx b/ui/test/ifql/containers/IFQLPage.test.tsx new file mode 100644 index 0000000000..2057868763 --- /dev/null +++ b/ui/test/ifql/containers/IFQLPage.test.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import {shallow} from 'enzyme' + +import IFQLPage from 'src/ifql/containers/IFQLPage' + +const setup = () => { + const wrapper = shallow() + + return { + wrapper, + } +} + +describe('IFQL.Containers.IFQLPage', () => { + describe('rendering', () => { + it('renders the page', () => { + const {wrapper} = setup() + + expect(wrapper.exists()).toBe(true) + }) + }) +})