mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-01 16:27:07 +00:00
Fix mock for testing
This commit is contained in:
@@ -481,8 +481,14 @@ export class Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Notice {
|
export class Notice {
|
||||||
|
private _key:number;
|
||||||
|
private static _counter = 0;
|
||||||
constructor(message: string) {
|
constructor(message: string) {
|
||||||
console.log("Notice:", message);
|
this._key = Notice._counter++;
|
||||||
|
console.log(`Notice [${this._key}]:`, message);
|
||||||
|
}
|
||||||
|
setMessage(message: string) {
|
||||||
|
console.log(`Notice [${this._key}]:`, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user