feat: Improve email rendering, introduce a new layout for emails (#5039)
Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com>
This commit is contained in:
parent
ef9ea99b91
commit
2c372fe315
19 changed files with 282 additions and 71 deletions
|
@ -14,17 +14,4 @@ describe('messageFormatterMixin', () => {
|
|||
'Chatwoot is an opensource tool. https://www.chatwoot.com'
|
||||
);
|
||||
});
|
||||
|
||||
it('stripStyleCharacters returns message without style tags', () => {
|
||||
const Component = {
|
||||
render() {},
|
||||
mixins: [messageFormatterMixin],
|
||||
};
|
||||
const wrapper = shallowMount(Component);
|
||||
const message =
|
||||
'<b style="max-width:100%">Chatwoot is an opensource tool. https://www.chatwoot.com</b><style type="css">.message{}</style>';
|
||||
expect(wrapper.vm.stripStyleCharacters(message)).toMatch(
|
||||
'<b>Chatwoot is an opensource tool. https://www.chatwoot.com</b>'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue