Skip to content

Commit

Permalink
Add updates
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldrk committed Nov 18, 2024
1 parent df19b56 commit 1f2a1b1
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,19 @@

expect(service.get_bankruptcy_data['dateDischarged']).to eq('00/0000')
end

it 'handles yyyy-mm-dd date for date discharged' do
form['additional_data']['bankruptcy']['date_discharged'] = '2024-03-15'
service = described_class.new(form)

expect(service.get_bankruptcy_data['dateDischarged']).to eq('03/2024')
end

it 'handles yyyy-mm date for date discharged' do
form['additional_data']['bankruptcy']['date_discharged'] = '2016-01'
service = described_class.new(form)

expect(service.get_bankruptcy_data['dateDischarged']).to eq('00/0000')
end
end
end

0 comments on commit 1f2a1b1

Please sign in to comment.