Start fixing tests
This commit is contained in:
parent
727b6b7ed5
commit
7fcd0f0bfa
1 changed files with 209 additions and 217 deletions
|
|
@ -40,7 +40,6 @@ export class SyncClient {
|
|||
private readonly history: SyncHistory,
|
||||
private readonly settings: Settings,
|
||||
private readonly database: Database,
|
||||
private readonly unrestrictedSyncer: UnrestrictedSyncer,
|
||||
private readonly syncer: Syncer,
|
||||
private readonly webSocketManager: WebSocketManager,
|
||||
public readonly logger: Logger,
|
||||
|
|
@ -56,7 +55,7 @@ export class SyncClient {
|
|||
database: Partial<StoredDatabase>;
|
||||
}>
|
||||
>
|
||||
) { }
|
||||
) {}
|
||||
|
||||
public get documentCount(): number {
|
||||
return this.database.length;
|
||||
|
|
@ -221,7 +220,6 @@ export class SyncClient {
|
|||
history,
|
||||
settings,
|
||||
database,
|
||||
unrestrictedSyncer,
|
||||
syncer,
|
||||
webSocketManager,
|
||||
logger,
|
||||
|
|
@ -410,7 +408,6 @@ export class SyncClient {
|
|||
return DocumentSyncStatus.SYNCING;
|
||||
}
|
||||
|
||||
|
||||
return this.syncer.hasPendingOperationsForDocument(relativePath)
|
||||
? DocumentSyncStatus.SYNCING
|
||||
: DocumentSyncStatus.UP_TO_DATE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue