Fix failing JS tests

This commit is contained in:
Oliver Hamlet
2016-03-11 22:04:01 +00:00
parent 46ddf3a86a
commit e267a7f678
+3 -3
View File
@@ -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;
});