feat: Render conversation custom attributes (#3065)

This commit is contained in:
Muhsin Keloth 2021-10-30 07:09:46 +05:30 committed by GitHub
parent 69f55a25b6
commit ab77e03c92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 1233 additions and 182 deletions

View file

@ -160,5 +160,18 @@ describe('#ConversationAPI', () => {
}
);
});
it('#updateCustomAttributes', () => {
conversationAPI.updateCustomAttributes({
conversationId: 45,
customAttributes: { order_d: '1001' },
});
expect(context.axiosMock.post).toHaveBeenCalledWith(
'/api/v1/conversations/45/custom_attributes',
{
custom_attributes: { order_d: '1001' },
}
);
});
});
});