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.

66 lines
1.1 KiB

  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. type="button"
  7. />
  8. `;
  9. exports[`<Button /> renders a button element 1`] = `
  10. <button
  11. className="button"
  12. onClick={[Function]}
  13. type="button"
  14. />
  15. `;
  16. exports[`<Button /> renders a disabled attribute if props.disabled given 1`] = `
  17. <button
  18. className="button"
  19. disabled={true}
  20. onClick={[Function]}
  21. type="button"
  22. />
  23. `;
  24. exports[`<Button /> renders class="button--block" if props.block given 1`] = `
  25. <button
  26. className="button button--block"
  27. onClick={[Function]}
  28. type="button"
  29. />
  30. `;
  31. exports[`<Button /> renders the children 1`] = `
  32. <button
  33. className="button"
  34. onClick={[Function]}
  35. type="button"
  36. >
  37. <p>
  38. children
  39. </p>
  40. </button>
  41. `;
  42. exports[`<Button /> renders the given text 1`] = `
  43. <button
  44. className="button"
  45. onClick={[Function]}
  46. type="button"
  47. >
  48. foo
  49. </button>
  50. `;
  51. exports[`<Button /> renders the props.text instead of children 1`] = `
  52. <button
  53. className="button"
  54. onClick={[Function]}
  55. type="button"
  56. >
  57. foo
  58. </button>
  59. `;