Adds unit tests for SearchController

This commit is contained in:
Wojciech Zawistowski
2014-01-23 20:25:37 +01:00
parent e3a151d66a
commit e27c007653
2 changed files with 291 additions and 0 deletions
@@ -17,6 +17,7 @@ Discourse.SearchController = Em.ArrayController.extend(Discourse.Presence, {
this.searchTerm(term, this.get('typeFilter'));
} else {
this.set('content', Em.A());
this.set('resultCount', 0);
}
this.set('selectedIndex', 0);
}.observes('term', 'typeFilter'),