From e267a7f678a6b349517cbef2a6cf16836c2dfbd3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 11 Mar 2016 22:01:35 +0000 Subject: [PATCH] Fix failing JS tests --- src/tests/gui/html/js/test_plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/gui/html/js/test_plugin.js b/src/tests/gui/html/js/test_plugin.js index dad49226..ee738551 100644 --- a/src/tests/gui/html/js/test_plugin.js +++ b/src/tests/gui/html/js/test_plugin.js @@ -821,7 +821,7 @@ describe('Plugin', () => { let handleEvent; afterEach(() => { - document.removeEventListener('loot-plugin-card-content-change', handleEvent); + document.removeEventListener('loot-plugin-card-styling-change', handleEvent); }); it('getting value should return false if it has not been set in the constructor', () => { @@ -845,7 +845,7 @@ describe('Plugin', () => { done(new Error('Should not have fired an event')); }; - document.addEventListener('loot-plugin-card-content-change', handleEvent); + document.addEventListener('loot-plugin-card-styling-change', handleEvent); plugin.isSearchResult = plugin.isSearchResult; @@ -860,7 +860,7 @@ describe('Plugin', () => { done(); }; - document.addEventListener('loot-plugin-card-content-change', handleEvent); + document.addEventListener('loot-plugin-card-styling-change', handleEvent); plugin.isSearchResult = true; });