You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ListItem-test.tsx.snap 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly 1`] = `
  3. <li
  4. className="issues-workspace-list-item"
  5. >
  6. <div
  7. className="issues-workspace-list-component note"
  8. >
  9. <ComponentBreadcrumbs
  10. component={
  11. Object {
  12. "breadcrumbs": Array [],
  13. "key": "my-project",
  14. "name": "MyProject",
  15. "qualifier": "TRK",
  16. "qualityGate": Object {
  17. "isDefault": true,
  18. "key": "30",
  19. "name": "Sonar way",
  20. },
  21. "qualityProfiles": Array [
  22. Object {
  23. "deleted": false,
  24. "key": "my-qp",
  25. "language": "ts",
  26. "name": "Sonar way",
  27. },
  28. ],
  29. "tags": Array [],
  30. }
  31. }
  32. issue={
  33. Object {
  34. "actions": Array [],
  35. "component": "main.js",
  36. "componentLongName": "main.js",
  37. "componentQualifier": "FIL",
  38. "componentUuid": "foo1234",
  39. "creationDate": "2017-03-01T09:36:01+0100",
  40. "flows": Array [],
  41. "fromHotspot": false,
  42. "key": "AVsae-CQS-9G3txfbFN2",
  43. "line": 25,
  44. "message": "Reduce the number of conditional operators (4) used in the expression",
  45. "project": "myproject",
  46. "projectKey": "foo",
  47. "projectName": "Foo",
  48. "rule": "javascript:S1067",
  49. "ruleName": "foo",
  50. "secondaryLocations": Array [],
  51. "severity": "MAJOR",
  52. "status": "OPEN",
  53. "textRange": Object {
  54. "endLine": 26,
  55. "endOffset": 15,
  56. "startLine": 25,
  57. "startOffset": 0,
  58. },
  59. "transitions": Array [],
  60. "type": "BUG",
  61. }
  62. }
  63. />
  64. </div>
  65. <Issue
  66. branchLike={
  67. Object {
  68. "analysisDate": "2018-01-01",
  69. "excludedFromPurge": true,
  70. "isMain": false,
  71. "name": "branch-6.7",
  72. }
  73. }
  74. checked={false}
  75. issue={
  76. Object {
  77. "actions": Array [],
  78. "component": "main.js",
  79. "componentLongName": "main.js",
  80. "componentQualifier": "FIL",
  81. "componentUuid": "foo1234",
  82. "creationDate": "2017-03-01T09:36:01+0100",
  83. "flows": Array [],
  84. "fromHotspot": false,
  85. "key": "AVsae-CQS-9G3txfbFN2",
  86. "line": 25,
  87. "message": "Reduce the number of conditional operators (4) used in the expression",
  88. "project": "myproject",
  89. "projectKey": "foo",
  90. "projectName": "Foo",
  91. "rule": "javascript:S1067",
  92. "ruleName": "foo",
  93. "secondaryLocations": Array [],
  94. "severity": "MAJOR",
  95. "status": "OPEN",
  96. "textRange": Object {
  97. "endLine": 26,
  98. "endOffset": 15,
  99. "startLine": 25,
  100. "startOffset": 0,
  101. },
  102. "transitions": Array [],
  103. "type": "BUG",
  104. }
  105. }
  106. onChange={[MockFunction]}
  107. onCheck={[MockFunction]}
  108. onClick={[MockFunction]}
  109. onFilter={[Function]}
  110. onPopupToggle={[MockFunction]}
  111. selected={false}
  112. />
  113. </li>
  114. `;