Skip to content

Catch rejected promise when testing user saving

Alf Eaton requested to merge catch-user-test into master

The test runner is showing a warning about an uncaught Promise rejection in model_test.js.

Saving the user object is wrapped within a Promise, so the test needs to catch a rejected Promise to get the validation error, rather than trying to catch the ValidationError exception.

Merge request reports