mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: library unit tests (#13357)
This commit is contained in:
parent
930df46f74
commit
3b7bf76db9
4 changed files with 152 additions and 13 deletions
|
|
@ -500,13 +500,13 @@ describe('/libraries', () => {
|
|||
});
|
||||
|
||||
it('should set an asset offline its file is not in any import path', async () => {
|
||||
utils.createImageFile(`${testAssetDir}/temp/offline/offline.png`);
|
||||
|
||||
const library = await utils.createLibrary(admin.accessToken, {
|
||||
ownerId: admin.userId,
|
||||
importPaths: [`${testAssetDirInternal}/temp/offline`],
|
||||
});
|
||||
|
||||
utils.createImageFile(`${testAssetDir}/temp/offline/offline.png`);
|
||||
|
||||
await scan(admin.accessToken, library.id);
|
||||
await utils.waitForQueueFinish(admin.accessToken, 'library');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue