summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/tags/ui/tag_list.spec.js
diff options
context:
space:
mode:
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.js4
1 files changed, 2 insertions, 2 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 c79bed53..72667b40 100644
--- a/web-ui/test/spec/tags/ui/tag_list.spec.js
+++ b/web-ui/test/spec/tags/ui/tag_list.spec.js
@@ -14,7 +14,7 @@ describeComponent('tags/ui/tag_list', function () {
describe('post initialization', function () {
beforeEach(function () {
- setupComponent();
+ this.setupComponent();
tagsShortcutsContainer = $('<ul>', { id: 'tags-shortcuts' });
$('body').append(tagsShortcutsContainer);
});
@@ -74,7 +74,7 @@ describeComponent('tags/ui/tag_list', function () {
$(document).trigger(Pixelated.events.ui.tagList.load, {tags: [] });
- expect(tagsLoadedEvent).toHaveBeenTriggeredOnAndWith(document, { tag: undefined });
+ expect(tagsLoadedEvent).toHaveBeenTriggeredOnAndWith(document, jasmine.objectContaining({ tag: undefined }));
});
it('should save the current tag when a tag is selected', function () {