The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(auth): update error message in sign-in-up service test (#10056)
Antoine Moreaux5b79ac771c65
diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.spec.ts b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.spec.tsindex 4df8a904549..f152408d730 100644--- a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.spec.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.spec.ts@@ -301,16 +301,13 @@ describe('SignInUpService', () => {};jest.spyOn(environmentService, 'get').mockReturnValue(false);- jest- .spyOn(userWorkspaceService, 'addUserToWorkspace')- .mockResolvedValue({} as User);jest.spyOn(userWorkspaceService, 'checkUserWorkspaceExists').mockResolvedValue(null);await expect(() => service.signInUp(params)).rejects.toThrow(new AuthException(- 'Workspace is not ready to welcome new members',+ 'User is not part of the workspace',AuthExceptionCode.FORBIDDEN_EXCEPTION,),);