Fix compile
This commit is contained in:
parent
340c347841
commit
c4da1426b1
5 changed files with 6 additions and 16 deletions
|
|
@ -326,7 +326,7 @@ export class Database {
|
|||
});
|
||||
}
|
||||
|
||||
public save(): Promise<void> {
|
||||
public async save(): Promise<void> {
|
||||
return this.saveData({
|
||||
documents: this.resolvedDocuments.map(
|
||||
({ relativePath, documentId, metadata }) => ({
|
||||
|
|
|
|||
|
|
@ -101,18 +101,6 @@ describe("FetchController", () => {
|
|||
assert.strictEqual(await response.text(), "OK");
|
||||
});
|
||||
|
||||
it("should throw when finishing reset without starting", () => {
|
||||
const logger = new Logger();
|
||||
const controller = new FetchController(true, logger);
|
||||
|
||||
assert.throws(
|
||||
() => { controller.finishReset(); },
|
||||
(error: unknown) =>
|
||||
error instanceof Error &&
|
||||
error.message === "Cannot finish reset when not resetting"
|
||||
);
|
||||
});
|
||||
|
||||
it("should defer canFetch changes during reset", async () => {
|
||||
const logger = new Logger();
|
||||
const controller = new FetchController(false, logger);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export class SyncClient {
|
|||
private hasStartedOfflineSync = false;
|
||||
private hasFinishedOfflineSync = false;
|
||||
private hasStarted = false;
|
||||
private hasBeenDestroyed = false;
|
||||
private readonly hasBeenDestroyed = false;
|
||||
private unloadTelemetry?: () => void;
|
||||
|
||||
private constructor(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue