diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-07 15:01:42 +0200 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-07 15:01:54 +0200 |
commit | 6299531f4c8f7daa1b4afab45d0439f635b03982 (patch) | |
tree | 92b2876e732731e5219e50ef7719c72ec2cb478a /web-ui/test/spec/tags/ui/tag_list.spec.js | |
parent | 88abefd3e62fb65a08dde62a7d7e4ce1fa22f563 (diff) |
Fixed jshint errors
Diffstat (limited to 'web-ui/test/spec/tags/ui/tag_list.spec.js')
-rw-r--r-- | web-ui/test/spec/tags/ui/tag_list.spec.js | 14 |
1 files changed, 9 insertions, 5 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 5c33f36e..85cc4509 100644 --- a/web-ui/test/spec/tags/ui/tag_list.spec.js +++ b/web-ui/test/spec/tags/ui/tag_list.spec.js @@ -1,3 +1,7 @@ +/* global _ */ +/* global Pixelated */ +/* global jasmine */ + describeComponent('tags/ui/tag_list', function () { 'use strict'; var tagsShortcutsContainer; @@ -11,12 +15,12 @@ describeComponent('tags/ui/tag_list', function () { describe('post initialization', function () { beforeEach(function () { setupComponent(); - tagsShortcutsContainer = $('<ul>', { id: "tags-shortcuts" }); + tagsShortcutsContainer = $('<ul>', { id: 'tags-shortcuts' }); $('body').append(tagsShortcutsContainer); }); - afterEach(function () { - $('body')[0].removeChild(tagsShortcutsContainer[0]) + jasmine.afterEach(function () { + $('body')[0].removeChild(tagsShortcutsContainer[0]); }); it('should render tags when tagsList:load is received', function () { @@ -83,7 +87,7 @@ describeComponent('tags/ui/tag_list', function () { var tagList = [tag('tag1', 1, false), tag('tag2', 2, true), tag('tag3', 3, true)]; $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList}); - var tagList = [tag('tag1', 1, false), tag('tag2', 2, true)]; + tagList = [tag('tag1', 1, false), tag('tag2', 2, true)]; $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList}); var customTags = _.map(this.component.select('customTagList').find('li'), function (el) { @@ -101,7 +105,7 @@ describeComponent('tags/ui/tag_list', function () { var tagList = [tag('inbox', 1, true)]; $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList}); - var tagList = [tag('sent', 1, true)]; + tagList = [tag('sent', 1, true)]; $(document).trigger(Pixelated.events.ui.tagList.load, {tags: tagList}); var shortcuts = _.map($('#tags-shortcuts').find('li'), function (el) { |