11import React from 'react' ;
2- import { mount } from 'enzyme' ;
2+ import { mount } from 'enzyme' ;
33
44import Client from '@/client' ;
55
6- import { LinkTooltip } from './link_tooltip' ;
6+ import { LinkTooltip } from './link_tooltip' ;
77
88jest . mock ( '@/client' , ( ) => ( {
99 getIssue : jest . fn ( ) ,
1010 getPullRequest : jest . fn ( ) ,
1111} ) ) ;
1212
13- jest . mock ( 'react-markdown' , ( ) => ( ) => < div /> ) ;
13+ jest . mock ( 'react-markdown' , ( ) => ( ) => < div /> ) ;
1414
1515describe ( 'LinkTooltip' , ( ) => {
1616 const baseProps = {
@@ -37,7 +37,7 @@ describe('LinkTooltip', () => {
3737 } ) ;
3838
3939 test ( 'should fetch issue for github.com link' , ( ) => {
40- wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
40+ wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
4141 expect ( Client . getIssue ) . toHaveBeenCalledWith ( 'mattermost' , 'mattermost-plugin-github' , '1' ) ;
4242 } ) ;
4343
@@ -46,7 +46,7 @@ describe('LinkTooltip', () => {
4646 ...baseProps ,
4747 href : 'https://github.com/mattermost/mattermost-plugin-github/pull/2' ,
4848 } ;
49- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
49+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
5050 expect ( Client . getPullRequest ) . toHaveBeenCalledWith ( 'mattermost' , 'mattermost-plugin-github' , '2' ) ;
5151 } ) ;
5252
@@ -56,7 +56,7 @@ describe('LinkTooltip', () => {
5656 href : 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3' ,
5757 enterpriseURL : 'https://github.example.com' ,
5858 } ;
59- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
59+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
6060 expect ( Client . getIssue ) . toHaveBeenCalledWith ( 'mattermost' , 'mattermost-plugin-github' , '3' ) ;
6161 } ) ;
6262
@@ -66,7 +66,7 @@ describe('LinkTooltip', () => {
6666 href : 'https://github.example.com/mattermost/mattermost-plugin-github/pull/4' ,
6767 enterpriseURL : 'https://github.example.com' ,
6868 } ;
69- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
69+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
7070 expect ( Client . getPullRequest ) . toHaveBeenCalledWith ( 'mattermost' , 'mattermost-plugin-github' , '4' ) ;
7171 } ) ;
7272
@@ -76,7 +76,7 @@ describe('LinkTooltip', () => {
7676 href : 'https://github.example.com/mattermost/mattermost-plugin-github/issues/5' ,
7777 enterpriseURL : 'https://github.example.com/' ,
7878 } ;
79- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
79+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
8080 expect ( Client . getIssue ) . toHaveBeenCalledWith ( 'mattermost' , 'mattermost-plugin-github' , '5' ) ;
8181 } ) ;
8282
@@ -86,7 +86,7 @@ describe('LinkTooltip', () => {
8686 href : 'https://other-github.com/mattermost/mattermost-plugin-github/issues/6' ,
8787 enterpriseURL : 'https://github.example.com' ,
8888 } ;
89- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
89+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
9090 expect ( Client . getIssue ) . not . toHaveBeenCalled ( ) ;
9191 } ) ;
9292
@@ -104,7 +104,7 @@ describe('LinkTooltip', () => {
104104 created_at : '2023-01-01T00:00:00Z' ,
105105 } ) ;
106106
107- wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
107+ wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
108108
109109 await new Promise ( ( resolve ) => setTimeout ( resolve , 0 ) ) ;
110110 wrapper . update ( ) ;
@@ -132,7 +132,7 @@ describe('LinkTooltip', () => {
132132 href : 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3' ,
133133 enterpriseURL : 'https://github.example.com' ,
134134 } ;
135- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
135+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
136136
137137 await new Promise ( ( resolve ) => setTimeout ( resolve , 0 ) ) ;
138138 wrapper . update ( ) ;
@@ -160,7 +160,7 @@ describe('LinkTooltip', () => {
160160 href : 'https://github.example.com/mattermost/mattermost-plugin-github/issues/3' ,
161161 enterpriseURL : 'https://github.example.com/' ,
162162 } ;
163- wrapper = mount ( < LinkTooltip { ...props } /> ) ;
163+ wrapper = mount ( < LinkTooltip { ...props } /> ) ;
164164
165165 await new Promise ( ( resolve ) => setTimeout ( resolve , 0 ) ) ;
166166 wrapper . update ( ) ;
@@ -182,7 +182,7 @@ describe('LinkTooltip', () => {
182182 created_at : '2023-01-01T00:00:00Z' ,
183183 } ) ;
184184
185- wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
185+ wrapper = mount ( < LinkTooltip { ...baseProps } /> ) ;
186186
187187 await new Promise ( ( resolve ) => setTimeout ( resolve , 0 ) ) ;
188188 wrapper . update ( ) ;
0 commit comments