Use new settings API exposed directly through SyncClient
This commit is contained in:
parent
a39e0886c7
commit
d772cda164
7 changed files with 50 additions and 72 deletions
|
|
@ -25,7 +25,7 @@ export class MockClient implements FileSystemOperations {
|
|||
await Promise.all(
|
||||
Object.keys(this.initialSettings).map(async (key) => {
|
||||
const settingKey = key as keyof SyncSettings; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
||||
return this.client.settings.setSetting(
|
||||
return this.client.setSetting(
|
||||
settingKey,
|
||||
this.initialSettings[settingKey]! // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue