nhsuk / nhsuk-prototype-kit-version-one

NHSUK Prototype Kit
https://nhsuk-prototype-kit.herokuapp.com/
MIT License
2 stars 3 forks source link

Display js errors for better debugging #37

Closed neilbmclaughlin closed 6 years ago

neilbmclaughlin commented 6 years ago

Fixes #36

Alternative approach would be to check for file existence before the require but this seems a reasonable alternative.

Checked it works by introducing a syntax error in the code behind. There seem to be no functionality tests but happy to add some if you'd prefer.

paul-mitchell-bjss commented 6 years ago

@neilbmclaughlin Some tests around this functionality would be great. What testing tool were you planning to use?

paul-mitchell-bjss commented 6 years ago

Closing in preference for #38