Configure line-endings
This commit is contained in:
parent
087d38f570
commit
d885646f39
3 changed files with 24 additions and 17 deletions
|
|
@ -19,14 +19,14 @@ export class MockClient implements FileSystemOperations {
|
|||
public async init(
|
||||
fetchImplementation: typeof globalThis.fetch
|
||||
): Promise<void> {
|
||||
this.client = await SyncClient.create(
|
||||
this,
|
||||
{
|
||||
this.client = await SyncClient.create({
|
||||
fs: this,
|
||||
persistence: {
|
||||
load: async () => this.data,
|
||||
save: async (data) => void (this.data = data)
|
||||
},
|
||||
fetchImplementation
|
||||
);
|
||||
fetch: fetchImplementation
|
||||
});
|
||||
|
||||
await Promise.all(
|
||||
Object.keys(this.initialSettings).map(async (key) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue