From 288b0dd010ab7f130b0968d2b5f896859f4a914d Mon Sep 17 00:00:00 2001 From: Ben Mitchinson Date: Fri, 24 Apr 2020 12:48:26 -0500 Subject: [PATCH] linting fix - html element typecasted as an input ele --- pwa/src/components/PatientInfoForm.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pwa/src/components/PatientInfoForm.test.tsx b/pwa/src/components/PatientInfoForm.test.tsx index 23d175b..0311782 100644 --- a/pwa/src/components/PatientInfoForm.test.tsx +++ b/pwa/src/components/PatientInfoForm.test.tsx @@ -82,7 +82,9 @@ test('validates blood pressure input', () => { , ) - const bpInput = dom.getByPlaceholderText('Blood Pressure') + const bpInput = dom.getByPlaceholderText( + 'Blood Pressure', + ) as HTMLInputElement fireEvent.change(bpInput, { target: { value: '130/85' } }) expect(bpInput.value).toBe('130/85') fireEvent.change(bpInput, { target: { value: '' } })