Skip to content

Commit

Permalink
reviewing, adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosshoven committed Oct 23, 2023
1 parent 4adaf1c commit b942927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/test/validation_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Validating records', () => {
it('requires a user name', () => {
const user = new User({ name: undefined });
// validateSync is a synchronous validation process (just validate() does not return a validation result, it needs a callback)
// after being defined above, user has access to many methods, here we use validateSync();
// after being defined above, user has access to many methods, here we use validateSync(); instantly get back a result
const validationResult = user.validateSync();
// console.log(validationResult);
// getting a hold of the error message in the error object in the console. Using a little decontstrucing
Expand Down

0 comments on commit b942927

Please sign in to comment.