Mastodon by Werefox Software source code
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.

button-test.js.snap 1.8KB

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