1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Tools: Fixed tests

This commit is contained in:
Laurent Cozic
2021-08-16 18:05:22 +01:00
parent 3f5081e2cd
commit edc3496506
6 changed files with 25 additions and 15 deletions

View File

@@ -1,5 +1,3 @@
import SyncTargetNone from './SyncTargetNone';
export interface SyncTargetInfo {
id: number;
name: string;
@@ -21,17 +19,17 @@ export default class SyncTargetRegistry {
private static reg_: Record<number, SyncTargetInfo> = {};
private static get reg() {
if (!this.reg_[0]) {
this.reg_[0] = {
id: 0,
name: SyncTargetNone.targetName(),
label: SyncTargetNone.label(),
classRef: SyncTargetNone,
description: SyncTargetNone.description(),
supportsSelfHosted: false,
supportsConfigCheck: false,
};
}
// if (!this.reg_[0]) {
// this.reg_[0] = {
// id: 0,
// name: SyncTargetNone.targetName(),
// label: SyncTargetNone.label(),
// classRef: SyncTargetNone,
// description: SyncTargetNone.description(),
// supportsSelfHosted: false,
// supportsConfigCheck: false,
// };
// }
return this.reg_;
}