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.

ComponentSourceSnippetGroupViewer-test.tsx.snap 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly 1`] = `
  3. <div
  4. className="component-source-container"
  5. >
  6. <SourceViewerHeaderSlim
  7. branchLike={
  8. Object {
  9. "analysisDate": "2018-01-01",
  10. "excludedFromPurge": true,
  11. "isMain": true,
  12. "name": "master",
  13. }
  14. }
  15. expandable={true}
  16. loading={false}
  17. onExpand={[Function]}
  18. sourceViewerFile={
  19. Object {
  20. "canMarkAsFavorite": true,
  21. "fav": false,
  22. "key": "project:foo/bar.ts",
  23. "longName": "foo/bar.ts",
  24. "measures": Object {
  25. "coverage": "85.2",
  26. "duplicationDensity": "1.0",
  27. "issues": "12",
  28. "lines": "56",
  29. },
  30. "name": "foo/bar.ts",
  31. "path": "foo/bar.ts",
  32. "project": "project",
  33. "projectName": "MyProject",
  34. "q": "FIL",
  35. "uuid": "foo-bar",
  36. }
  37. }
  38. />
  39. </div>
  40. `;
  41. exports[`should render correctly line with issue 1`] = `
  42. <div
  43. className="issue-list"
  44. >
  45. <Issue
  46. branchLike={
  47. Object {
  48. "analysisDate": "2018-01-01",
  49. "excludedFromPurge": true,
  50. "isMain": true,
  51. "name": "master",
  52. }
  53. }
  54. displayWhyIsThisAnIssue={false}
  55. issue={
  56. Object {
  57. "actions": Array [],
  58. "component": "main.js",
  59. "componentLongName": "main.js",
  60. "componentQualifier": "FIL",
  61. "componentUuid": "foo1234",
  62. "creationDate": "2017-03-01T09:36:01+0100",
  63. "flows": Array [],
  64. "fromHotspot": false,
  65. "key": "AVsae-CQS-9G3txfbFN2",
  66. "line": 25,
  67. "message": "Reduce the number of conditional operators (4) used in the expression",
  68. "project": "myproject",
  69. "projectKey": "foo",
  70. "projectName": "Foo",
  71. "rule": "javascript:S1067",
  72. "ruleName": "foo",
  73. "secondaryLocations": Array [],
  74. "severity": "MAJOR",
  75. "status": "OPEN",
  76. "textRange": Object {
  77. "endLine": 1,
  78. "endOffset": 1,
  79. "startLine": 1,
  80. "startOffset": 0,
  81. },
  82. "transitions": Array [],
  83. "type": "BUG",
  84. }
  85. }
  86. key="AVsae-CQS-9G3txfbFN2"
  87. onChange={[MockFunction]}
  88. onClick={[Function]}
  89. onPopupToggle={[MockFunction]}
  90. selected={true}
  91. />
  92. </div>
  93. `;