fix(HubSpot Node): Require DueDate for task creation (#18799)

This commit is contained in:
yehorkardash
2025-08-27 11:43:22 +03:00
committed by GitHub
parent 4dcb22048d
commit e665cbf278
7 changed files with 201 additions and 23 deletions

View File

@@ -356,14 +356,12 @@ describe('Hubspot Node', () => {
describe('engagements', () => {
beforeAll(() => {
hubspotNock
.post('/engagements/v1/engagements', function checkOwnerIdIsDefined(body) {
return body.engagement.ownerId === engagements.request[0].engagement.ownerId;
})
.reply(200, engagements.response[0])
.post('/engagements/v1/engagements', function checkOwnerIdIsNotDefined(body) {
return body.engagement.ownerId === undefined;
})
.reply(200, engagements.response[1]);
.post('/engagements/v1/engagements', engagements.request.createWithOwnerId)
.reply(200, engagements.response.createWithOwnerId)
.post('/engagements/v1/engagements', engagements.request.createWithoutOwnerId)
.reply(200, engagements.response.createWithoutOwnerId)
.post('/engagements/v1/engagements', engagements.request.createV2_1)
.reply(200, engagements.response.createV2_1);
});
afterAll(() => hubspotNock.done());