]> source.dussan.org Git - sonarqube.git/blob
cbd51729559077b48122ca1d01548f9d6dd6e845
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: editing 1`] = `
4 <DeferredSpinner
5   loading={false}
6 >
7   <EscKeydownHandler
8     onKeydown={[MockFunction]}
9   >
10     <OutsideClickHandler
11       onClickOutside={[MockFunction]}
12     >
13       <AssigneeSelection
14         allowCurrentUserSelection={false}
15         loggedInUser={
16           Object {
17             "groups": Array [],
18             "isLoggedIn": true,
19             "login": "luke",
20             "name": "Skywalker",
21             "scmAccounts": Array [],
22           }
23         }
24         onSelect={[MockFunction]}
25       />
26     </OutsideClickHandler>
27   </EscKeydownHandler>
28 </DeferredSpinner>
29 `;
30
31 exports[`should render correctly: not editing 1`] = `
32 <DeferredSpinner
33   loading={false}
34 >
35   <div
36     className="display-flex-center"
37   >
38     <strong
39       className="nowrap"
40     >
41       user.x_deleted.Skywalker
42     </strong>
43     <EditButton
44       className="spacer-left"
45       onClick={[MockFunction]}
46     />
47   </div>
48 </DeferredSpinner>
49 `;
50
51 exports[`should render correctly: with active assignee 1`] = `
52 <DeferredSpinner
53   loading={false}
54 >
55   <div
56     className="display-flex-center"
57   >
58     <strong
59       className="nowrap"
60     >
61       John Doe
62     </strong>
63     <EditButton
64       className="spacer-left"
65       onClick={[MockFunction]}
66     />
67   </div>
68 </DeferredSpinner>
69 `;
70
71 exports[`should render correctly: without current assignee 1`] = `
72 <DeferredSpinner
73   loading={false}
74 >
75   <div
76     className="display-flex-center"
77   >
78     <strong
79       className="nowrap"
80     >
81       unassigned
82     </strong>
83     <EditButton
84       className="spacer-left"
85       onClick={[MockFunction]}
86     />
87   </div>
88 </DeferredSpinner>
89 `;