summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-02-10 17:32:14 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-02-19 16:41:24 -0200
commit88c5ddd2f3af1a5a38c9a501543363aba00323c0 (patch)
tree3ea9de789961d03bf796a95d28ed88a5432268ab /web-ui/test
parent518856ed261ba3bdd1270dff45151db967c72434 (diff)
#239 Remove tags shortcuts
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/tags/ui/tag_list.spec.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/web-ui/test/spec/tags/ui/tag_list.spec.js b/web-ui/test/spec/tags/ui/tag_list.spec.js
index 9391a30a..f92f72af 100644
--- a/web-ui/test/spec/tags/ui/tag_list.spec.js
+++ b/web-ui/test/spec/tags/ui/tag_list.spec.js
@@ -80,30 +80,14 @@ describeComponent('tags/ui/tag_list', function () {
expect(defaultTags).toEqual(['tag-2']);
});
- it('resets the tag shortcuts when loading tags', function () {
- var tagList = [tag('inbox', 1, true)];
- $(document).trigger(Pixelated.events.tags.received, {tags: tagList});
-
- tagList = [tag('sent', 1, true)];
- $(document).trigger(Pixelated.events.tags.received, {tags: tagList});
-
- var shortcuts = _.map($('#tags-shortcuts').find('li'), function (el) {
- return $(el).text().trim();
- });
-
- expect(shortcuts).toEqual(['sent']);
- });
-
it('sends teardown events when loading new tags', function () {
var tagsTeardownCustom = spyOnEvent(this.component.select('customTagList'), Pixelated.events.tags.teardown);
var tagsTeardownDefault = spyOnEvent(this.component.select('defaultTagList'), Pixelated.events.tags.teardown);
- var tagsShortcutsTeardown = spyOnEvent(document, Pixelated.events.tags.shortcuts.teardown);
$(document).trigger(Pixelated.events.tags.received, {tags: []});
expect(tagsTeardownCustom).toHaveBeenTriggeredOn(this.component.select('customTagList'));
expect(tagsTeardownDefault).toHaveBeenTriggeredOn(this.component.select('defaultTagList'));
- expect(tagsShortcutsTeardown).toHaveBeenTriggeredOn(document);
});
});
});