Remove unused Plugin.priorityString getter

This commit is contained in:
Oliver Hamlet
2016-03-05 11:49:26 +00:00
parent 632cf1b30a
commit 210dd14a10
2 changed files with 0 additions and 34 deletions
-8
View File
@@ -232,14 +232,6 @@
return rowData;
}
get priorityString() {
if (this.priority === 0) {
return '';
}
return this.priority.toString();
}
_dispatchCardContentChangeEvent() {
document.dispatchEvent(new CustomEvent('loot-plugin-card-content-change', {
detail: { pluginId: this.id },
-26
View File
@@ -301,32 +301,6 @@ describe('Plugin', () => {
});
});
describe('#priorityString', () => {
it('should return an empty string if priority is undefined', () => {
const plugin = new loot.Plugin({ name: 'test' });
plugin.priorityString.should.equal('');
});
it('should return an empty string if priority is zero', () => {
const plugin = new loot.Plugin({
name: 'test',
priority: 0,
});
plugin.priorityString.should.equal('');
});
it('should return priority value as string if non zero', () => {
const plugin = new loot.Plugin({
name: 'test',
priority: -50,
});
plugin.priorityString.should.equal('-50');
});
});
describe('#messages', () => {
let handleEvent;