splitDiff.spec.jsx.snap 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`SplitDiff renders 1`] = `
  3. <SplitTable>
  4. <SplitBody>
  5. <tr
  6. key="0"
  7. >
  8. <Cell
  9. isRemoved={
  10. Object {
  11. "added": undefined,
  12. "count": 1,
  13. "removed": true,
  14. "value": "restaurant",
  15. }
  16. }
  17. >
  18. <Line>
  19. <Word
  20. isRemoved={true}
  21. key="0"
  22. >
  23. restaurant
  24. </Word>
  25. </Line>
  26. </Cell>
  27. <Gap />
  28. <Cell
  29. isAdded={
  30. Object {
  31. "added": true,
  32. "count": 1,
  33. "removed": undefined,
  34. "value": "aura",
  35. }
  36. }
  37. >
  38. <Line>
  39. <Word
  40. isAdded={true}
  41. key="0"
  42. >
  43. aura
  44. </Word>
  45. </Line>
  46. </Cell>
  47. </tr>
  48. </SplitBody>
  49. </SplitTable>
  50. `;
  51. exports[`SplitDiff renders with newlines 1`] = `
  52. <SplitTable>
  53. <SplitBody>
  54. <tr
  55. key="0"
  56. >
  57. <Cell
  58. isRemoved={
  59. Object {
  60. "added": undefined,
  61. "count": 1,
  62. "removed": true,
  63. "value": "this is my restaurant",
  64. }
  65. }
  66. >
  67. <Line>
  68. <Word
  69. isRemoved={true}
  70. key="0"
  71. >
  72. this is my restaurant
  73. </Word>
  74. </Line>
  75. </Cell>
  76. <Gap />
  77. <Cell
  78. isAdded={
  79. Object {
  80. "added": true,
  81. "count": 1,
  82. "removed": undefined,
  83. "value": "aura",
  84. }
  85. }
  86. >
  87. <Line>
  88. <Word
  89. isAdded={true}
  90. key="0"
  91. >
  92. aura
  93. </Word>
  94. </Line>
  95. </Cell>
  96. </tr>
  97. <tr
  98. key="1"
  99. >
  100. <Cell
  101. isRemoved={
  102. Object {
  103. "added": undefined,
  104. "count": 1,
  105. "removed": true,
  106. "value": " and restaurant",
  107. }
  108. }
  109. >
  110. <Line>
  111. <Word
  112. isRemoved={true}
  113. key="0"
  114. >
  115. and restaurant
  116. </Word>
  117. </Line>
  118. </Cell>
  119. <Gap />
  120. <Cell
  121. isAdded={
  122. Object {
  123. "added": true,
  124. "count": 1,
  125. "removed": undefined,
  126. "value": " and your aura",
  127. }
  128. }
  129. >
  130. <Line>
  131. <Word
  132. isAdded={true}
  133. key="0"
  134. >
  135. and your aura
  136. </Word>
  137. </Line>
  138. </Cell>
  139. </tr>
  140. <tr
  141. key="2"
  142. >
  143. <Cell>
  144. <Line>
  145. <Word
  146. key="0"
  147. >
  148. common
  149. </Word>
  150. </Line>
  151. </Cell>
  152. <Gap />
  153. <Cell>
  154. <Line>
  155. <Word
  156. key="0"
  157. >
  158. common
  159. </Word>
  160. </Line>
  161. </Cell>
  162. </tr>
  163. </SplitBody>
  164. </SplitTable>
  165. `;