From 027b3b426e027e05ec462bf7cd2ea46560bcb313 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Wed, 8 May 2019 15:57:57 +0200 Subject: [PATCH] fix/more tests --- client/src/routes/Publish/index.test.tsx | 2 +- client/src/routes/Publish/loader.test.tsx | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 client/src/routes/Publish/loader.test.tsx diff --git a/client/src/routes/Publish/index.test.tsx b/client/src/routes/Publish/index.test.tsx index f72fbcc..a5b2dd4 100644 --- a/client/src/routes/Publish/index.test.tsx +++ b/client/src/routes/Publish/index.test.tsx @@ -6,6 +6,6 @@ describe('Progress', () => { it('renders without crashing', () => { const { container, getByText } = render() expect(container.firstChild).toBeInTheDocument() - expect(getByText('Next →')).toHaveAttribute('disabled') + expect(getByText('Publish')) }) }) diff --git a/client/src/routes/Publish/loader.test.tsx b/client/src/routes/Publish/loader.test.tsx new file mode 100644 index 0000000..fd3c9b2 --- /dev/null +++ b/client/src/routes/Publish/loader.test.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { render } from 'react-testing-library' +import Loader from './loader' + +describe('Progress', () => { + it('renders without crashing', () => { + const { container, getByText } = render({}}/>) + expect(container.firstChild).toBeInTheDocument() + expect(getByText('Next →')) + }) +})