mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Merge pull request #4916 from hpetru/validate-poll-answer
I added the validation to poll question and poll answer Conflicts: app/assets/javascripts/app/views/publisher_view.js
This commit is contained in:
@@ -51,4 +51,11 @@ describe('app.views.PublisherPollCreator', function(){
|
||||
expect(this.view.$(remove_btn).hasClass('active')).toBe(false);
|
||||
});
|
||||
});
|
||||
describe('#validateInput', function(){
|
||||
it('should invalid blank value', function(){
|
||||
var input = this.view.$('input');
|
||||
input.val(' ');
|
||||
expect(this.view.validateInput(input)).toBe(false);
|
||||
}):
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user