fix: Render valid urls only in custom attributes (#3921)

This commit is contained in:
Muhsin Keloth
2022-02-07 13:04:27 +05:30
committed by GitHub
parent 047070ad87
commit 9f37a6e2ba
5 changed files with 23 additions and 21 deletions

View File

@@ -92,18 +92,6 @@ describe('attributeMixin', () => {
expect(wrapper.vm.attributeDisplayType(9988)).toBe('number');
});
it('return true if link is passed', () => {
const Component = {
render() {},
title: 'TestComponent',
mixins: [attributeMixin],
};
const wrapper = shallowMount(Component, { store, localVue });
expect(wrapper.vm.isAttributeLink('https://www.chatwoot.com/pricing')).toBe(
true
);
});
it('return true if number is passed', () => {
const Component = {
render() {},