chore: library unit tests ()

This commit is contained in:
Daniel Dietzler 2024-10-11 20:40:29 +02:00 committed by GitHub
parent 930df46f74
commit 3b7bf76db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 152 additions and 13 deletions
e2e/src

View file

@ -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) }),