diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-16 14:59:49 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-16 14:59:56 +0200 |
commit | 5a0425986800bf03de8c49dc00f45d86d3b365ee (patch) | |
tree | 967bdd7868d67adaf1967f9616ef6a1702d5fa6f /web-ui/test/spec/dispatchers | |
parent | 2871fd91a844e007cbf821b51f6bba16cf727abb (diff) |
for #95, make sure that the tag list is also refreshed when the mail list is refreshed, since there can be new unread mails and we need to update the count
Diffstat (limited to 'web-ui/test/spec/dispatchers')
-rw-r--r-- | web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js b/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js index 86b54a48..935bb917 100644 --- a/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js +++ b/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js @@ -47,7 +47,7 @@ describeComponent('dispatchers/left_pane_dispatcher', function () { it('asks for more tags when refreshTagList is fired', function () { var tagWantEvent = spyOnEvent(document, Pixelated.events.tags.want); - $(document).trigger(Pixelated.events.dispatchers.tags.refreshTagList); + $(document).trigger(Pixelated.events.dispatchers.tags.refreshTagList, {}); expect(tagWantEvent).toHaveBeenTriggeredOn(document); }); @@ -63,7 +63,7 @@ describeComponent('dispatchers/left_pane_dispatcher', function () { it('on tags loaded selects the inbox tag if no data is provided', function () { var selectTagEvent = spyOnEvent(document, Pixelated.events.ui.tag.select); - $(document).trigger(Pixelated.events.ui.tags.loaded); + $(document).trigger(Pixelated.events.ui.tags.loaded, {}); expect(selectTagEvent).toHaveBeenTriggeredOnAndWith(document, { tag: 'inbox' }); }); |