-
Notifications
You must be signed in to change notification settings - Fork 377
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
Fix for issue #519, unnecessary check for validatable observables #529
Conversation
@@ -625,6 +625,74 @@ QUnit.test('Issue #44 - Validation Element - Is Invalid Test', function(assert) | |||
|
|||
}); | |||
|
|||
QUnit.test('Validatable can become non-validatable', 0, function(assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using this syntax (0 expectations), why not add an assert at the end of the test, like assert.equal(ko.validation.utils.isValidatable(false), false);
IMO, It would better describe the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was an accident leaving this test behind. Removing it as redundant and incomplete.
Looks good. Can I merge this or you want to make further changes? |
Done and ready to go. Merge away. |
validationElement and validationMessage bindings throw if observable is not validatable.
landed in 8409e9a |
Sweet. Thanks! |
At this point |
Still learning how to git properly, so here's a different pull request for issue #519.