test: improve overall test coverage

This commit is contained in:
thecodrr
2022-08-15 10:57:25 +05:00
parent 6d45c23e79
commit 87b778db94
25 changed files with 908 additions and 714 deletions

View File

@@ -130,7 +130,7 @@ class Settings {
}
isPinned(id) {
return this._settings.pins.findIndex((v) => v.data.id === id) > -1;
return !!this._settings.pins.find((v) => v.data.id === id);
}
get pins() {