ministryofjustice / laa-apply-for-legal-aid

The laa-apply-for-legal-aid system is a web service by use for solicitors providing legal aid services to enter applications for legal aid on-line. It asks for details of applicant means (income and assets), and the merits of a case, and gives a decision on whether legal aid can be granted or not, and if so, will push the application through to back-end processes for payment.
https://apply-for-legal-aid.service.justice.gov.uk/
MIT License
15 stars 7 forks source link

Unit testing for JS functionality #83

Closed lostie closed 3 years ago

lostie commented 5 years ago

If there's a bit chunk of functionality developed in Javascript it should probably have some Unit tests in place to cover more thoroughly the different scenarios that functionality provides.

Not to be taken as the way to go, but more of an idea/guideline, here's some example of what was done in other projects to achieve the same purpose: https://github.com/ministryofjustice/Claim-for-Crown-Court-Defence/blob/master/spec/javascripts/Modules.OffenceSearchInput_spec.js

mpw5 commented 3 years ago

We've had jest tests for javascript for some time now. Closing this issue.