-
+
{data.repo}
{' on '}
@@ -156,7 +157,7 @@ export const LinkTooltip = ({ href, connected, show, theme, enterpriseURL }) =>
href={href}
target='_blank'
rel='noopener noreferrer'
- style={{ color: theme.centerChannelColor }}
+ style={{color: theme.centerChannelColor}}
>
{data.title}
{'#' + data.number}
@@ -202,7 +203,7 @@ export const LinkTooltip = ({ href, connected, show, theme, enterpriseURL }) =>
key={idx}
className='label mr-1'
title={label.description}
- style={{ backgroundColor: '#' + label.color, color: getLabelFontColor(label.color) }}
+ style={{backgroundColor: '#' + label.color, color: getLabelFontColor(label.color)}}
>
{label.name}
diff --git a/webapp/src/components/link_tooltip/link_tooltip.test.jsx b/webapp/src/components/link_tooltip/link_tooltip.test.jsx
index 0fa4f59ea..42f2bb3b2 100644
--- a/webapp/src/components/link_tooltip/link_tooltip.test.jsx
+++ b/webapp/src/components/link_tooltip/link_tooltip.test.jsx
@@ -1,16 +1,16 @@
import React from 'react';
-import { mount } from 'enzyme';
+import {mount} from 'enzyme';
import Client from '@/client';
-import { LinkTooltip } from './link_tooltip';
+import {LinkTooltip} from './link_tooltip';
jest.mock('@/client', () => ({
getIssue: jest.fn(),
getPullRequest: jest.fn(),
}));
-jest.mock('react-markdown', () => () =>
);
+jest.mock('react-markdown', () => () =>
);
describe('LinkTooltip', () => {
const baseProps = {
@@ -37,7 +37,7 @@ describe('LinkTooltip', () => {
});
test('should fetch issue for github.com link', () => {
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getIssue).toHaveBeenCalledWith('mattermost', 'mattermost-plugin-github', '1');
});
@@ -46,7 +46,7 @@ describe('LinkTooltip', () => {
...baseProps,
href: 'https://github.com/mattermost/mattermost-plugin-github/pull/2',
};
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getPullRequest).toHaveBeenCalledWith('mattermost', 'mattermost-plugin-github', '2');
});
@@ -56,7 +56,7 @@ describe('LinkTooltip', () => {
href: 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3',
enterpriseURL: 'https://github.example.com',
};
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getIssue).toHaveBeenCalledWith('mattermost', 'mattermost-plugin-github', '3');
});
@@ -66,7 +66,7 @@ describe('LinkTooltip', () => {
href: 'https://github.example.com/mattermost/mattermost-plugin-github/pull/4',
enterpriseURL: 'https://github.example.com',
};
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getPullRequest).toHaveBeenCalledWith('mattermost', 'mattermost-plugin-github', '4');
});
@@ -76,7 +76,7 @@ describe('LinkTooltip', () => {
href: 'https://github.example.com/mattermost/mattermost-plugin-github/issues/5',
enterpriseURL: 'https://github.example.com/',
};
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getIssue).toHaveBeenCalledWith('mattermost', 'mattermost-plugin-github', '5');
});
@@ -86,7 +86,7 @@ describe('LinkTooltip', () => {
href: 'https://other-github.com/mattermost/mattermost-plugin-github/issues/6',
enterpriseURL: 'https://github.example.com',
};
- wrapper = mount(
);
+ wrapper = mount(
);
expect(Client.getIssue).not.toHaveBeenCalled();
});
@@ -104,7 +104,7 @@ describe('LinkTooltip', () => {
created_at: '2023-01-01T00:00:00Z',
});
- wrapper = mount(
);
+ wrapper = mount(
);
await new Promise((resolve) => setTimeout(resolve, 0));
wrapper.update();
@@ -132,7 +132,7 @@ describe('LinkTooltip', () => {
href: 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3',
enterpriseURL: 'https://github.example.com',
};
- wrapper = mount(
);
+ wrapper = mount(
);
await new Promise((resolve) => setTimeout(resolve, 0));
wrapper.update();
@@ -160,7 +160,7 @@ describe('LinkTooltip', () => {
href: 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3',
enterpriseURL: 'https://github.example.com/',
};
- wrapper = mount(
);
+ wrapper = mount(
);
await new Promise((resolve) => setTimeout(resolve, 0));
wrapper.update();
@@ -182,7 +182,7 @@ describe('LinkTooltip', () => {
created_at: '2023-01-01T00:00:00Z',
});
- wrapper = mount(
);
+ wrapper = mount(
);
await new Promise((resolve) => setTimeout(resolve, 0));
wrapper.update();