Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32c64eb

Browse files
committed
fix: remove test that makes no sense
1 parent923d2f8 commit32c64eb

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

‎apps/api/v2/src/modules/teams/event-types/controllers/teams-event-types.controller.e2e-spec.ts‎

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,64 +1337,6 @@ describe("Organizations Event Types Endpoints", () => {
13371337

13381338
awaiteventTypesRepositoryFixture.delete(roundRobinEventType.id);
13391339
});
1340-
1341-
it("should update managed event type hosts and return array with parent and child event types",async()=>{
1342-
constmanagedEventType=awaiteventTypesRepositoryFixture.create(
1343-
{
1344-
title:`managed-update-hosts-${randomString()}`,
1345-
slug:`managed-update-hosts-${randomString()}`,
1346-
length:60,
1347-
team:{
1348-
connect:{
1349-
id:team.id,
1350-
},
1351-
},
1352-
schedulingType:"MANAGED",
1353-
hosts:{
1354-
create:[
1355-
{
1356-
userId:teamMember1.id,
1357-
isFixed:true,
1358-
},
1359-
],
1360-
},
1361-
},
1362-
userAdmin.id
1363-
);
1364-
1365-
constupdateBody={
1366-
hosts:[
1367-
{
1368-
userId:teamMember2.id,
1369-
},
1370-
],
1371-
};
1372-
1373-
constresponse=awaitrequest(app.getHttpServer())
1374-
.patch(`/v2/teams/${team.id}/event-types/${managedEventType.id}`)
1375-
.send(updateBody)
1376-
.expect(200);
1377-
1378-
constresponseBody:ApiSuccessResponse<TeamEventTypeOutput_2024_06_14[]>=response.body;
1379-
expect(responseBody.status).toEqual(SUCCESS_STATUS);
1380-
expect(Array.isArray(responseBody.data)).toBe(true);
1381-
// note(Lauris): 1 parent managed event type + 1 child event type
1382-
expect(responseBody.data).toHaveLength(2);
1383-
1384-
constparentEventType=responseBody.data[0];
1385-
expect(parentEventType.schedulingType).toEqual("managed");
1386-
expect(parentEventType.hosts).toHaveLength(1);
1387-
expect(parentEventType.hosts[0].userId).toEqual(teamMember2.id);
1388-
expect(parentEventType.parentEventTypeId).toBeNull();
1389-
1390-
constchildEventType=responseBody.data[1];
1391-
expect(childEventType.parentEventTypeId).toEqual(parentEventType.id);
1392-
expect(childEventType.schedulingType).toBeNull();
1393-
expect(childEventType.hosts).toHaveLength(0);
1394-
expect(childEventType.ownerId).toEqual(teamMember2.id);
1395-
1396-
awaiteventTypesRepositoryFixture.delete(managedEventType.id);
1397-
});
13981340
});
13991341

14001342
afterAll(async()=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp