diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-06 16:19:36 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-06 16:45:48 -0200 |
commit | b0720edaa0d51ee9e807495fa536d890d332c50d (patch) | |
tree | f3f1021ded39bafaeb24adca837c65477c36ad1f /web-ui/test/spec/search | |
parent | 45c4d0b4ccfe8619438d3e9752624b639feaea3d (diff) |
Update tests to refactored events behaviour
Diffstat (limited to 'web-ui/test/spec/search')
-rw-r--r-- | web-ui/test/spec/search/search_trigger.spec.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/web-ui/test/spec/search/search_trigger.spec.js b/web-ui/test/spec/search/search_trigger.spec.js index 1cc72847..845bdc7d 100644 --- a/web-ui/test/spec/search/search_trigger.spec.js +++ b/web-ui/test/spec/search/search_trigger.spec.js @@ -22,28 +22,6 @@ describeComponent('search/search_trigger', function () { expect(spy).toHaveBeenTriggeredOnAndWith(document, { query: 'tanana' }); }); - it('should select the "all" tag when submit occurs but should skip mail list refresh', function (){ - var tagSelectEvent = spyOnEvent(document, Pixelated.events.ui.tag.select); - - submitSearch('tanana'); - - expect(tagSelectEvent).toHaveBeenTriggeredOnAndWith(document, { - tag: 'all', - skipMailListRefresh: true - }); - }); - - it('should select the "all" tag when an empty submit occurs and shoud refresh mail list', function() { - var tagSelectEvent = spyOnEvent(document, Pixelated.events.ui.tag.select); - var emptySearchEvent = spyOnEvent(document, Pixelated.events.search.empty); - - submitSearch(''); - - expect(emptySearchEvent).toHaveBeenTriggeredOn(document); - expect(tagSelectEvent).toHaveBeenTriggeredOnAndWith(document, { tag: 'all'}); - - }); - it('should clear input when selecting a new tag', function(){ submitSearch('tanana'); $(document).trigger(Pixelated.events.ui.tag.selected, { tag: 'inbox'}); |