@@ -544,6 +544,7 @@ describe('MemberService tests', () => {
544544 tenantId : mockIServiceOptions . currentTenant . id ,
545545 createdById : mockIServiceOptions . currentUser . id ,
546546 updatedById : mockIServiceOptions . currentUser . id ,
547+ isTeamOrganization : false ,
547548 } )
548549 } )
549550
@@ -600,6 +601,7 @@ describe('MemberService tests', () => {
600601 tenantId : mockIServiceOptions . currentTenant . id ,
601602 createdById : mockIServiceOptions . currentUser . id ,
602603 updatedById : mockIServiceOptions . currentUser . id ,
604+ isTeamOrganization : false ,
603605 } )
604606 } )
605607
@@ -660,6 +662,7 @@ describe('MemberService tests', () => {
660662 tenantId : mockIServiceOptions . currentTenant . id ,
661663 createdById : mockIServiceOptions . currentUser . id ,
662664 updatedById : mockIServiceOptions . currentUser . id ,
665+ isTeamOrganization : false ,
663666 } )
664667 } )
665668
@@ -736,82 +739,10 @@ describe('MemberService tests', () => {
736739 tenantId : mockIServiceOptions . currentTenant . id ,
737740 createdById : mockIServiceOptions . currentUser . id ,
738741 updatedById : mockIServiceOptions . currentUser . id ,
742+ isTeamOrganization : false ,
739743 } )
740744 } )
741745
742- // it('Should create non existent member - several organizations with enrichment', async () => {
743- // const mockIServiceOptions = await SequelizeTestUtils.getTestIServiceOptions(db, 'premium')
744- //
745- // const member1 = {
746- // username: 'anil',
747- // platform: PlatformType.GITHUB,
748- // email: 'lala@l.com',
749- // score: 10,
750- // attributes: {},
751- // reach: 10,
752- // bio: 'Computer Science',
753- // organizations: [
754- // { name: 'crowd.dev', url: 'https://crowd.dev', description: 'Here' },
755- // { url: 'crowd.dev' },
756- // ],
757- // joinedAt: '2020-05-28T15:13:30Z',
758- // location: 'Istanbul',
759- // }
760- //
761- // const memberCreated = await new MemberService(mockIServiceOptions).upsert(member1)
762- //
763- // memberCreated.createdAt = memberCreated.createdAt.toISOString().split('T')[0]
764- // memberCreated.updatedAt = memberCreated.updatedAt.toISOString().split('T')[0]
765- //
766- // const organization = (await OrganizationRepository.findAndCountAll({}, mockIServiceOptions))
767- // .rows[0]
768- //
769- // const foundMember = await MemberRepository.findById(memberCreated.id, mockIServiceOptions)
770- //
771- // const o1 = foundMember.organizations[0].dataValues
772- // delete o1.createdAt
773- // delete o1.updatedAt
774- //
775- // expect(o1).toStrictEqual({
776- // id: organization.id,
777- // name: 'Crowd.dev',
778- // url: 'crowd.dev',
779- // description:
780- // 'Understand, grow, and engage your developer community with zero hassle. With crowd.dev, you can build developer communities that drive your business forward.',
781- // parentUrl: null,
782- // emails: ['hello@crowd.dev', 'jonathan@crowd.dev', 'careers@crowd.dev'],
783- // phoneNumbers: ['+42 424242'],
784- // logo: 'https://logo.clearbit.com/crowd.dev',
785- // tags: [],
786- // twitter: {
787- // id: '1362101830923259908',
788- // bio: 'Community-led Growth for Developer-first Companies.\nJoin our private beta. 👇',
789- // site: 'https://t.co/GRLDhqFWk4',
790- // avatar: 'https://pbs.twimg.com/profile_images/1419741008716251141/6exZe94-_normal.jpg',
791- // handle: 'CrowdDotDev',
792- // location: '🌍 remote',
793- // followers: 107,
794- // following: 0,
795- // },
796- // linkedin: {
797- // handle: 'company/crowddevhq',
798- // },
799- // crunchbase: {
800- // handle: null,
801- // },
802- // employees: 5,
803- // revenueRange: {
804- // max: 1,
805- // min: 0,
806- // },
807- // importHash: null,
808- // deletedAt: null,
809- // tenantId: mockIServiceOptions.currentTenant.id,
810- // createdById: mockIServiceOptions.currentUser.id,
811- // updatedById: mockIServiceOptions.currentUser.id,
812- // })
813- // })
814- //
815746 it ( 'Should update existent member succesfully - simple' , async ( ) => {
816747 const mockIServiceOptions = await SequelizeTestUtils . getTestIServiceOptions ( db )
817748
0 commit comments