refactor: e2e tests (#30870)

This commit is contained in:
Jason Rasmussen authored and GitHub committed 2026-08-19 14:31:57 -04:00
1 parent c63824bcea
commit 7cd0a7d30c
32 files changed
+618 -648

No files matched your search

@@ -47,6 +47,15 @@ describe(SharedLinkController.name, () => {
expect(service.create).toHaveBeenCalledWith(undefined, expect.objectContaining({ expiresAt: null }));
});
it('should require an albumId for share type Album', async () => {
const { status, body } = await request(ctx.getHttpServer())
.post('/shared-links')
.send({ type: SharedLinkType.Album });
expect(status).toBe(400);
expect(body).toEqual(errorDto.validationError([{ path: [], message: 'albumId is required for type ALBUM' }]));
expect(service.create).not.toHaveBeenCalled();
});
it('should not allow an albumId for share type Individual', async () => {
const { status, body } = await request(ctx.getHttpServer())
.post('/shared-links')