From 4ed07aa534689c59c32805feaccb9f549e662317 Mon Sep 17 00:00:00 2001 From: sulak-j Date: Thu, 5 Sep 2024 14:54:09 -0500 Subject: [PATCH] another rspec and linting fix --- client/app/queue/components/CorrespondenceCancelTaskModal.jsx | 4 +++- .../queue/correspondence/correspondence_details_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/app/queue/components/CorrespondenceCancelTaskModal.jsx b/client/app/queue/components/CorrespondenceCancelTaskModal.jsx index b179e9b60ca..08f22245184 100644 --- a/client/app/queue/components/CorrespondenceCancelTaskModal.jsx +++ b/client/app/queue/components/CorrespondenceCancelTaskModal.jsx @@ -27,7 +27,9 @@ const CorrespondenceCancelTaskModal = (props) => { const [instructions, setInstructions] = useState(''); const [instructionsAdded, setInstructionsAdded] = useState(true); - const tempTask = props.correspondenceInfo.tasksUnrelatedToAppeal.find((task1) => parseInt(props.task_id, 10) === parseInt(task1.uniqueId, 10)); + const tempTask = props.correspondenceInfo.tasksUnrelatedToAppeal.find( + (task1) => parseInt(props.task_id, 10) === parseInt(task1.uniqueId, 10) + ); useEffect(() => { // Handle document search position diff --git a/spec/feature/queue/correspondence/correspondence_details_spec.rb b/spec/feature/queue/correspondence/correspondence_details_spec.rb index 73297525f9a..f497b8d615a 100644 --- a/spec/feature/queue/correspondence/correspondence_details_spec.rb +++ b/spec/feature/queue/correspondence/correspondence_details_spec.rb @@ -186,12 +186,12 @@ ) end - it "checks that Other Motion task can be cancelled." do + it "checks that Other motion task can be cancelled." do visit "/queue/correspondence/#{@correspondence.uuid}" click_dropdown(prompt: "Select an action", text: "Cancel task") find(".cf-form-textarea", match: :first).fill_in with: "Cancel task test" click_button "Cancel-task-button-id-1" - expect(page).to have_content("Other Motion task has been cancelled.") + expect(page).to have_content("Other motion task has been cancelled.") end it "checks that Other Motion task can be completed." do