Refactor code structure for improved readability and maintainability

This commit is contained in:
Jose Selesan
2026-06-03 10:31:01 -03:00
parent 473686528e
commit ba7b0322ff
3 changed files with 110 additions and 49 deletions

View File

@@ -80,7 +80,7 @@ test('rejects when the invite target already belongs to the complex', async () =
}
expect(caught).toBeInstanceOf(ComplexMembersError);
expect((caught as ComplexMembersError).status).toBe(409);
expect((caught as InstanceType<typeof ComplexMembersError>).status).toBe(409);
expect(transactionMock).not.toHaveBeenCalled();
expect(sendMailMock).not.toHaveBeenCalled();
});