From bff0f036cb3e27d76d4f1a775c080795d30dac08 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 5 Oct 2020 13:05:42 +0100 Subject: Update form listing tests with new types --- src/tests/components/FormListing.test.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tests/components/FormListing.test.tsx b/src/tests/components/FormListing.test.tsx index 4080f4d..82d1380 100644 --- a/src/tests/components/FormListing.test.tsx +++ b/src/tests/components/FormListing.test.tsx @@ -3,16 +3,18 @@ import { render } from '@testing-library/react'; import FormListing from "../../components/FormListing"; import { BrowserRouter as Router } from 'react-router-dom'; -import { Form } from '../../api/forms'; +import { AllFormsForm } from '../../api/forms'; -const openFormListing: Form = { +const openFormListing: AllFormsForm = { title: "Example form listing", + id: "example-form-listing", description: "My form listing", open: true } -const closedFormListing: Form = { +const closedFormListing: AllFormsForm = { title: "Example form listing", + id: "example-form-listing", description: "My form listing", open: false } -- cgit v1.2.3