mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove unused Plugin.priorityString getter
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user