You've already forked joplin
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:
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user