mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: add template based data generator
This commit is contained in:
@@ -160,6 +160,10 @@ export const mockFs = (rootFilepath?: string, time?: Date): { data: any } => {
|
||||
}
|
||||
folder[name] = {};
|
||||
},
|
||||
readFile(path: string): string {
|
||||
const { folder, name } = getFolder(path);
|
||||
return folder[name];
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user