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.

PerspectiveSelect-test.tsx.snap 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should handle perspective change correctly 1`] = `
  3. Array [
  4. Array [
  5. Object {
  6. "view": "overall",
  7. },
  8. ],
  9. Array [
  10. Object {
  11. "view": "leak",
  12. },
  13. ],
  14. ]
  15. `;
  16. exports[`should render correctly 1`] = `
  17. <div>
  18. <label
  19. id="aria-projects-perspective"
  20. >
  21. projects.perspective
  22. :
  23. </label>
  24. <Select
  25. aria-labelledby="aria-projects-perspective"
  26. className="little-spacer-left input-medium it__projects-perspective-select"
  27. components={
  28. Object {
  29. "Option": [Function],
  30. }
  31. }
  32. isClearable={false}
  33. isSearchable={false}
  34. onChange={[Function]}
  35. options={
  36. Array [
  37. Object {
  38. "label": "projects.view.overall",
  39. "value": "overall",
  40. },
  41. Object {
  42. "label": "projects.view.new_code",
  43. "value": "leak",
  44. },
  45. ]
  46. }
  47. value={
  48. Object {
  49. "label": "projects.view.overall",
  50. "value": "overall",
  51. }
  52. }
  53. />
  54. </div>
  55. `;