logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

button-test.js.snap (1959B)


  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`<Button /> adds class "button-secondary" if props.secondary given 1`] = `
  3. <button
  4. className="button button-secondary"
  5. disabled={undefined}
  6. onClick={[Function]}
  7. style={
  8. Object {
  9. "height": "36px",
  10. "lineHeight": "36px",
  11. "padding": "0 16px",
  12. }
  13. }
  14. />
  15. `;
  16. exports[`<Button /> renders a button element 1`] = `
  17. <button
  18. className="button"
  19. disabled={undefined}
  20. onClick={[Function]}
  21. style={
  22. Object {
  23. "height": "36px",
  24. "lineHeight": "36px",
  25. "padding": "0 16px",
  26. }
  27. }
  28. />
  29. `;
  30. exports[`<Button /> renders a disabled attribute if props.disabled given 1`] = `
  31. <button
  32. className="button"
  33. disabled={true}
  34. onClick={[Function]}
  35. style={
  36. Object {
  37. "height": "36px",
  38. "lineHeight": "36px",
  39. "padding": "0 16px",
  40. }
  41. }
  42. />
  43. `;
  44. exports[`<Button /> renders class="button--block" if props.block given 1`] = `
  45. <button
  46. className="button button--block"
  47. disabled={undefined}
  48. onClick={[Function]}
  49. style={
  50. Object {
  51. "height": "36px",
  52. "lineHeight": "36px",
  53. "padding": "0 16px",
  54. }
  55. }
  56. />
  57. `;
  58. exports[`<Button /> renders the children 1`] = `
  59. <button
  60. className="button"
  61. disabled={undefined}
  62. onClick={[Function]}
  63. style={
  64. Object {
  65. "height": "36px",
  66. "lineHeight": "36px",
  67. "padding": "0 16px",
  68. }
  69. }
  70. >
  71. <p>
  72. children
  73. </p>
  74. </button>
  75. `;
  76. exports[`<Button /> renders the given text 1`] = `
  77. <button
  78. className="button"
  79. disabled={undefined}
  80. onClick={[Function]}
  81. style={
  82. Object {
  83. "height": "36px",
  84. "lineHeight": "36px",
  85. "padding": "0 16px",
  86. }
  87. }
  88. >
  89. foo
  90. </button>
  91. `;
  92. exports[`<Button /> renders the props.text instead of children 1`] = `
  93. <button
  94. className="button"
  95. disabled={undefined}
  96. onClick={[Function]}
  97. style={
  98. Object {
  99. "height": "36px",
  100. "lineHeight": "36px",
  101. "padding": "0 16px",
  102. }
  103. }
  104. >
  105. foo
  106. </button>
  107. `;