From 9ba85657300f8b88d5100cf26e14053c4125aba8 Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Fri, 17 Nov 2023 11:47:50 +0100 Subject: [PATCH] simplify e2e test --- cli/test/e2e/cli.e2e-spec.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cli/test/e2e/cli.e2e-spec.ts b/cli/test/e2e/cli.e2e-spec.ts index 61f5c7347..bc8e4e251 100644 --- a/cli/test/e2e/cli.e2e-spec.ts +++ b/cli/test/e2e/cli.e2e-spec.ts @@ -43,12 +43,8 @@ describe(`CLI (e2e)`, () => { }); describe('upload', () => { - it('should upload an asset', async () => { - await fs.promises.cp(`${IMMICH_TEST_ASSET_PATH}/albums/nature`, `${IMMICH_TEST_ASSET_TEMP_PATH}/albums/nature`, { - recursive: true, - }); - - await new Upload().run([`${IMMICH_TEST_ASSET_TEMP_PATH}/albums/nature`], {}); + it('should upload a folder recursively', async () => { + await new Upload().run([`${IMMICH_TEST_ASSET_PATH}/albums/nature/`], { recursive: true }); const assets = await api.assetApi.getAllAssets(server, admin.accessToken); expect(assets.length).toBeGreaterThan(4); });