diff --git a/packages/server/__tests__/startRetrospective.test.ts b/packages/server/__tests__/startRetrospective.test.ts index 3cae7befc33..2dc04eb1bd0 100644 --- a/packages/server/__tests__/startRetrospective.test.ts +++ b/packages/server/__tests__/startRetrospective.test.ts @@ -41,6 +41,48 @@ test('Retro is named Retro #1 by default', async () => { }) }) +test('Single Retro can be named', async () => { + await getRethink() + const {userId, authToken} = await signUp() + const {id: teamId} = (await getUserTeams(userId))[0] + + const name = 'My Retro' + const newRetro = await sendPublic({ + query: ` + mutation StartRetrospectiveMutation($teamId: ID!, $name: String, $rrule: RRule, $gcalInput: CreateGcalEventInput) { + startRetrospective(teamId: $teamId, name: $name, rrule: $rrule, gcalInput: $gcalInput) { + ... on ErrorPayload { + error { + message + } + } + ... on StartRetrospectiveSuccess { + meeting { + id + name + } + } + } + } + `, + variables: { + teamId, + name + }, + authToken + }) + expect(newRetro).toMatchObject({ + data: { + startRetrospective: { + meeting: { + id: expect.anything(), + name + } + } + } + }) +}) + test('Recurring retro is named like RetroSeries Jan 1', async () => { await getRethink() const {userId, authToken} = await signUp() diff --git a/packages/server/graphql/public/types/CreateGcalEventInput.ts b/packages/server/graphql/public/types/CreateGcalEventInput.ts index 02647e0dddc..97a4e6ad98c 100644 --- a/packages/server/graphql/public/types/CreateGcalEventInput.ts +++ b/packages/server/graphql/public/types/CreateGcalEventInput.ts @@ -36,13 +36,11 @@ const CreateGcalEventInput = new GraphQLInputObjectType({ }) }) -type GcalVideoTypeEnum = 'meet' | 'zoom' - export type CreateGcalEventInputType = { startTimestamp: number endTimestamp: number timeZone: string - videoType?: GcalVideoTypeEnum + videoType?: 'meet' | 'zoom' invitees?: string[] }