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.

DateRangeInput-test.tsx.snap 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render 1`] = `
  3. <div
  4. className="display-inline-flex-center"
  5. >
  6. <DateInput
  7. currentMonth={2018-02-05T00:00:00.000Z}
  8. data-test="from"
  9. highlightTo={2018-02-05T00:00:00.000Z}
  10. maxDate={2018-02-05T00:00:00.000Z}
  11. onChange={[Function]}
  12. placeholder="start_date"
  13. value={2018-01-17T00:00:00.000Z}
  14. />
  15. <span
  16. className="note little-spacer-left little-spacer-right"
  17. >
  18. to_
  19. </span>
  20. <DateInput
  21. currentMonth={2018-01-17T00:00:00.000Z}
  22. data-test="to"
  23. highlightFrom={2018-01-17T00:00:00.000Z}
  24. minDate={2018-01-17T00:00:00.000Z}
  25. onChange={[Function]}
  26. placeholder="end_date"
  27. value={2018-02-05T00:00:00.000Z}
  28. />
  29. </div>
  30. `;
  31. exports[`should render: with min/max 1`] = `
  32. <div
  33. className="display-inline-flex-center"
  34. >
  35. <DateInput
  36. data-test="from"
  37. maxDate={2018-02-05T00:00:00.000Z}
  38. minDate={2018-01-17T00:00:00.000Z}
  39. onChange={[Function]}
  40. placeholder="start_date"
  41. />
  42. <span
  43. className="note little-spacer-left little-spacer-right"
  44. >
  45. to_
  46. </span>
  47. <DateInput
  48. data-test="to"
  49. maxDate={2018-02-05T00:00:00.000Z}
  50. minDate={2018-01-17T00:00:00.000Z}
  51. onChange={[Function]}
  52. placeholder="end_date"
  53. />
  54. </div>
  55. `;
  56. exports[`should render: with min/max and value 1`] = `
  57. <div
  58. className="display-inline-flex-center"
  59. >
  60. <DateInput
  61. currentMonth={2018-02-05T00:00:00.000Z}
  62. data-test="from"
  63. highlightTo={2018-02-05T00:00:00.000Z}
  64. maxDate={2018-02-05T00:00:00.000Z}
  65. minDate={2018-01-17T00:00:00.000Z}
  66. onChange={[Function]}
  67. placeholder="start_date"
  68. value={2018-01-17T00:00:00.000Z}
  69. />
  70. <span
  71. className="note little-spacer-left little-spacer-right"
  72. >
  73. to_
  74. </span>
  75. <DateInput
  76. currentMonth={2018-01-17T00:00:00.000Z}
  77. data-test="to"
  78. highlightFrom={2018-01-17T00:00:00.000Z}
  79. maxDate={2018-02-05T00:00:00.000Z}
  80. minDate={2018-01-17T00:00:00.000Z}
  81. onChange={[Function]}
  82. placeholder="end_date"
  83. value={2018-02-05T00:00:00.000Z}
  84. />
  85. </div>
  86. `;