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.

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