From 2506939f62673da6dcf7c6a2251aceb76ecaf19a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 27 May 2019 20:24:03 +0200 Subject: [PATCH] add render tests --- .../components/organisms/AssetsLatest.test.tsx | 15 +++++++++++++++ .../components/organisms/ChannelTeaser.test.tsx | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 client/src/components/organisms/AssetsLatest.test.tsx create mode 100644 client/src/components/organisms/ChannelTeaser.test.tsx diff --git a/client/src/components/organisms/AssetsLatest.test.tsx b/client/src/components/organisms/AssetsLatest.test.tsx new file mode 100644 index 0000000..978045b --- /dev/null +++ b/client/src/components/organisms/AssetsLatest.test.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import { render } from 'react-testing-library' +import AssetsLatest from './AssetsLatest' +import { BrowserRouter } from 'react-router-dom' + +describe('AssetsLatest', () => { + it('renders without crashing', () => { + const { container } = render( + + + + ) + expect(container.firstChild).toBeInTheDocument() + }) +}) diff --git a/client/src/components/organisms/ChannelTeaser.test.tsx b/client/src/components/organisms/ChannelTeaser.test.tsx new file mode 100644 index 0000000..c270a41 --- /dev/null +++ b/client/src/components/organisms/ChannelTeaser.test.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import { render } from 'react-testing-library' +import ChannelTeaser from './ChannelTeaser' +import { BrowserRouter } from 'react-router-dom' + +describe('ChannelTeaser', () => { + it('renders without crashing', () => { + const { container } = render( + + + + ) + expect(container.firstChild).toBeInTheDocument() + }) +})