splitLayout.spec.jsx.snap 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`SplitLayout renders with a separation width 1`] = `
  3. <SpreadLayout
  4. center={true}
  5. className="split-layout allow-responsive"
  6. responsive={false}
  7. >
  8. <div
  9. className="split-layout-child"
  10. key=".0"
  11. style={
  12. Object {
  13. "marginRight": 5,
  14. }
  15. }
  16. >
  17. child #1
  18. </div>
  19. <div
  20. className="split-layout-child"
  21. key=".1"
  22. style={
  23. Object {
  24. "marginRight": 5,
  25. }
  26. }
  27. >
  28. child #2
  29. </div>
  30. <div
  31. className="split-layout-child"
  32. key=".2"
  33. style={
  34. Object {
  35. "marginRight": undefined,
  36. }
  37. }
  38. >
  39. child #3
  40. </div>
  41. </SpreadLayout>
  42. `;
  43. exports[`SplitLayout renders with multiple children 1`] = `
  44. <SpreadLayout
  45. center={true}
  46. className="split-layout"
  47. responsive={false}
  48. >
  49. <div
  50. className="split-layout-child"
  51. key=".0"
  52. style={
  53. Object {
  54. "marginRight": undefined,
  55. }
  56. }
  57. >
  58. child #1
  59. </div>
  60. <div
  61. className="split-layout-child"
  62. key=".1"
  63. style={
  64. Object {
  65. "marginRight": undefined,
  66. }
  67. }
  68. >
  69. child #2
  70. </div>
  71. <div
  72. className="split-layout-child"
  73. key=".2"
  74. style={
  75. Object {
  76. "marginRight": undefined,
  77. }
  78. }
  79. >
  80. child #3
  81. </div>
  82. </SpreadLayout>
  83. `;
  84. exports[`SplitLayout renders with one child 1`] = `
  85. <SpreadLayout
  86. center={true}
  87. className="split-layout"
  88. responsive={false}
  89. >
  90. <div
  91. className="split-layout-child"
  92. key=".0"
  93. style={
  94. Object {
  95. "marginRight": undefined,
  96. }
  97. }
  98. >
  99. child
  100. </div>
  101. </SpreadLayout>
  102. `;
  103. exports[`SplitLayout renders with responsive property 1`] = `
  104. <SpreadLayout
  105. center={true}
  106. className="split-layout allow-responsive"
  107. responsive={false}
  108. >
  109. <div
  110. className="split-layout-child"
  111. key=".0"
  112. style={
  113. Object {
  114. "marginRight": undefined,
  115. }
  116. }
  117. >
  118. child #1
  119. </div>
  120. <div
  121. className="split-layout-child"
  122. key=".1"
  123. style={
  124. Object {
  125. "marginRight": undefined,
  126. }
  127. }
  128. >
  129. child #2
  130. </div>
  131. <div
  132. className="split-layout-child"
  133. key=".2"
  134. style={
  135. Object {
  136. "marginRight": undefined,
  137. }
  138. }
  139. >
  140. child #3
  141. </div>
  142. </SpreadLayout>
  143. `;