mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add fake access support
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
906172bc29
commit
f7c3657e60
2 files changed
+3
No files matched your search
@@ -19,6 +19,7 @@ const fsInjectable = getInjectable({
|
|||||||
readdir,
|
readdir,
|
||||||
lstat,
|
lstat,
|
||||||
rm,
|
rm,
|
||||||
|
access,
|
||||||
},
|
},
|
||||||
readFileSync,
|
readFileSync,
|
||||||
readJson,
|
readJson,
|
||||||
@@ -44,6 +45,7 @@ const fsInjectable = getInjectable({
|
|||||||
pathExistsSync,
|
pathExistsSync,
|
||||||
lstat,
|
lstat,
|
||||||
rm,
|
rm,
|
||||||
|
access,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
causesSideEffects: true,
|
causesSideEffects: true,
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export const getOverrideFsWithFakes = () => {
|
|||||||
readdir: root.promises.readdir as any,
|
readdir: root.promises.readdir as any,
|
||||||
lstat: root.promises.lstat as any,
|
lstat: root.promises.lstat as any,
|
||||||
rm: root.promises.rm,
|
rm: root.promises.rm,
|
||||||
|
access: root.promises.access,
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user