From 7b7e5f1a6fd5926670917af735b2eda75fa332ee Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Mon, 18 Aug 2014 14:58:22 -0300 Subject: Duda/Patrick #8: reseting tag shortcuts before loading them again --- web-ui/test/spec/tags/ui/tag_list.spec.js | 67 +++++++++++++++++++++++---- web-ui/test/spec/tags/ui/tag_shortcut.spec.js | 19 ++++++++ 2 files changed, 78 insertions(+), 8 deletions(-) (limited to 'web-ui/test/spec/tags/ui') 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 f39fbf36..5c33f36e 100644 --- a/web-ui/test/spec/tags/ui/tag_list.spec.js +++ b/web-ui/test/spec/tags/ui/tag_list.spec.js @@ -1,48 +1,55 @@ describeComponent('tags/ui/tag_list', function () { 'use strict'; + var tagsShortcutsContainer; - var tag = function(name, ident, def) { + var tag = function (name, ident, def) { def = def || false; return {name: name, counts: {read: 0, total: 0, replied: 0, starred: 0}, ident: ident, default: def}; }; - describe('post initialization', function() { + describe('post initialization', function () { beforeEach(function () { setupComponent(); + tagsShortcutsContainer = $('