feat: Adds the ability to edit and delete custom attributes (#2982)

* feat: Adds the ability to edit and delete custom attributes

* Review fixes

* Minor fixes

* Adds specs

* Minor fixes

* Update settings.routes.js

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sivin Varghese
2021-09-13 15:56:18 +05:30
committed by GitHub
parent 571fefd7cd
commit 26a3150fd8
8 changed files with 325 additions and 42 deletions

View File

@@ -1,4 +1,8 @@
import { getTypingUsersText, createPendingMessage } from '../commons';
import {
getTypingUsersText,
createPendingMessage,
convertToSlug,
} from '../commons';
describe('#getTypingUsersText', () => {
it('returns the correct text is there is only one typing user', () => {
@@ -83,3 +87,9 @@ describe('#createPendingMessage', () => {
expect(pending.attachments.length).toBe(1);
});
});
describe('convertToSlug', () => {
it('should convert to slug', () => {
expect(convertToSlug('Test@%^&*(){}>.!@`~_ ing')).toBe('test__ing');
});
});