summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/dispatchers
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-06 16:19:36 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-06 16:45:48 -0200
commitb0720edaa0d51ee9e807495fa536d890d332c50d (patch)
treef3f1021ded39bafaeb24adca837c65477c36ad1f /web-ui/test/spec/dispatchers
parent45c4d0b4ccfe8619438d3e9752624b639feaea3d (diff)
Update tests to refactored events behaviour
Diffstat (limited to 'web-ui/test/spec/dispatchers')
-rw-r--r--web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js32
1 files changed, 0 insertions, 32 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 df8169c6..a8b4946c 100644
--- a/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js
+++ b/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js
@@ -28,14 +28,6 @@ describeComponent('dispatchers/left_pane_dispatcher', function () {
expect(pushStateEvent).toHaveBeenTriggeredOn(document, { tag: 'inbox'});
});
- it('fetches mails by tag when a tag is selected', function () {
- var fetchByTagEvent = spyOnEvent(document, Pixelated.events.ui.mails.fetchByTag);
-
- $(document).trigger(Pixelated.events.ui.tag.selected, { tag: 'Drafts'});
-
- expect(fetchByTagEvent).toHaveBeenTriggeredOn(document, { tag: 'Drafts'});
- });
-
it('doesnt fetch mails by tag when skipMailListRefresh is sent on tag.selected', function () {
var fetchByTagEvent = spyOnEvent(document, Pixelated.events.ui.mails.fetchByTag);
@@ -51,29 +43,5 @@ describeComponent('dispatchers/left_pane_dispatcher', function () {
expect(tagWantEvent).toHaveBeenTriggeredOn(document);
});
-
- it('fires tagLoad when the tags are received', function () {
- var tagListLoadEvent = spyOnEvent(document, Pixelated.events.ui.tagList.load);
-
- this.$node.trigger(Pixelated.events.tags.received, { tags: ['tags']});
-
- expect(tagListLoadEvent).toHaveBeenTriggeredOn(document, { tags: ['tags']});
- });
-
- 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, {});
-
- expect(selectTagEvent).toHaveBeenTriggeredOnAndWith(document, { tag: 'inbox' });
- });
-
- it('on tags loaded selects the a different tag if tag is provided', function () {
- var selectTagEvent = spyOnEvent(document, Pixelated.events.ui.tag.select);
-
- $(document).trigger(Pixelated.events.ui.tags.loaded, { tag: 'Drafts' });
-
- expect(selectTagEvent).toHaveBeenTriggeredOnAndWith(document, { tag: 'Drafts' });
- });
});
});