mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 09:12:56 +02:00
chore: library unit tests (#13357)
This commit is contained in:
parent
930df46f74
commit
3b7bf76db9
4 changed files with 152 additions and 13 deletions
e2e/src
|
@ -374,8 +374,8 @@ export const utils = {
|
|||
},
|
||||
|
||||
createDirectory: (path: string) => {
|
||||
if (!existsSync(dirname(path))) {
|
||||
mkdirSync(dirname(path), { recursive: true });
|
||||
if (!existsSync(path)) {
|
||||
mkdirSync(path, { recursive: true });
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -392,7 +392,7 @@ export const utils = {
|
|||
return;
|
||||
}
|
||||
|
||||
rmSync(path);
|
||||
rmSync(path, { recursive: true });
|
||||
},
|
||||
|
||||
getAssetInfo: (accessToken: string, id: string) => getAssetInfo({ id }, { headers: asBearerAuth(accessToken) }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue