-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the "validation using joi" assignment does not test for the first criterium #132
Comments
I think exactly the same. But I've had a go trying to add another verification and sounds not so easy with workshopper. Does somebody have any hint on how to do that? I've searched in other workshopper-based projects but I couldn't find anything. Any idea? |
Source code for reference: I have a hard time parsing that hack honestly. Seems to me workshopper as a tester UI also managing test constructing and processor is a bit overreach. |
@matjack1 @louy2 first off: I hope to replace workshopper sooner than later with workshopper-adventure. However: technically all three (including adventure) work on the assumption that it is one test. i.e. if the test fails, the lesson is not marked completed. |
@matjack1 Sidenote: You can ask me questions about |
The assignment states that if
isGuest
is false, a username is required, but it clearly does not test for this.The solution shows the code you wanted to see was along the lines of
however, the following code passes just fine (which is just as well, the assignment taught me nothing about how to use Joi, I kind of tried stuff until this assignment passed so I could move on)
Even with this, the "official solution" looks like it doesn't even say what type
username
has to be. I don't dig Joi after these two assignments at all, it's been more revealed as quite a hassle and worth passing up in favour of a more user-friendly POST data validatorThe text was updated successfully, but these errors were encountered: