Graph.test.tsx.snap 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <Fragment>
  4. <div
  5. className="explore-graph"
  6. id="graph"
  7. style={
  8. Object {
  9. "height": 100,
  10. }
  11. }
  12. />
  13. <GraphLegend
  14. displayMode="list"
  15. items={
  16. Array [
  17. Object {
  18. "color": undefined,
  19. "isVisible": true,
  20. "label": undefined,
  21. "yAxis": 1,
  22. },
  23. Object {
  24. "color": undefined,
  25. "isVisible": true,
  26. "label": undefined,
  27. "yAxis": 1,
  28. },
  29. Object {
  30. "color": undefined,
  31. "isVisible": true,
  32. "label": undefined,
  33. "yAxis": 1,
  34. },
  35. Object {
  36. "color": undefined,
  37. "isVisible": true,
  38. "label": undefined,
  39. "yAxis": 1,
  40. },
  41. Object {
  42. "color": undefined,
  43. "isVisible": true,
  44. "label": undefined,
  45. "yAxis": 1,
  46. },
  47. Object {
  48. "color": undefined,
  49. "isVisible": true,
  50. "label": undefined,
  51. "yAxis": 1,
  52. },
  53. Object {
  54. "color": undefined,
  55. "isVisible": true,
  56. "label": undefined,
  57. "yAxis": 1,
  58. },
  59. Object {
  60. "color": undefined,
  61. "isVisible": true,
  62. "label": undefined,
  63. "yAxis": 1,
  64. },
  65. Object {
  66. "color": undefined,
  67. "isVisible": true,
  68. "label": undefined,
  69. "yAxis": 1,
  70. },
  71. Object {
  72. "color": undefined,
  73. "isVisible": true,
  74. "label": undefined,
  75. "yAxis": 1,
  76. },
  77. Object {
  78. "color": undefined,
  79. "isVisible": true,
  80. "label": undefined,
  81. "yAxis": 1,
  82. },
  83. Object {
  84. "color": undefined,
  85. "isVisible": true,
  86. "label": undefined,
  87. "yAxis": 1,
  88. },
  89. Object {
  90. "color": undefined,
  91. "isVisible": true,
  92. "label": undefined,
  93. "yAxis": 1,
  94. },
  95. Object {
  96. "color": undefined,
  97. "isVisible": true,
  98. "label": undefined,
  99. "yAxis": 1,
  100. },
  101. Object {
  102. "color": undefined,
  103. "isVisible": true,
  104. "label": undefined,
  105. "yAxis": 1,
  106. },
  107. Object {
  108. "color": undefined,
  109. "isVisible": true,
  110. "label": undefined,
  111. "yAxis": 1,
  112. },
  113. Object {
  114. "color": undefined,
  115. "isVisible": true,
  116. "label": undefined,
  117. "yAxis": 1,
  118. },
  119. Object {
  120. "color": undefined,
  121. "isVisible": true,
  122. "label": undefined,
  123. "yAxis": 1,
  124. },
  125. Object {
  126. "color": undefined,
  127. "isVisible": true,
  128. "label": undefined,
  129. "yAxis": 1,
  130. },
  131. ]
  132. }
  133. onLabelClick={[Function]}
  134. placement="under"
  135. />
  136. </Fragment>
  137. `;
  138. exports[`Render should render component with disclaimer 1`] = `
  139. <Fragment>
  140. <div
  141. className="time-series-disclaimer"
  142. >
  143. <i
  144. className="fa fa-fw fa-warning disclaimer-icon"
  145. />
  146. Showing only 20 time series.
  147. <span
  148. className="show-all-time-series"
  149. onClick={[Function]}
  150. >
  151. Show all 27
  152. </span>
  153. </div>
  154. <div
  155. className="explore-graph"
  156. id="graph"
  157. style={
  158. Object {
  159. "height": 100,
  160. }
  161. }
  162. />
  163. <GraphLegend
  164. displayMode="list"
  165. items={
  166. Array [
  167. Object {
  168. "color": undefined,
  169. "isVisible": true,
  170. "label": undefined,
  171. "yAxis": 1,
  172. },
  173. Object {
  174. "color": undefined,
  175. "isVisible": true,
  176. "label": undefined,
  177. "yAxis": 1,
  178. },
  179. Object {
  180. "color": undefined,
  181. "isVisible": true,
  182. "label": undefined,
  183. "yAxis": 1,
  184. },
  185. Object {
  186. "color": undefined,
  187. "isVisible": true,
  188. "label": undefined,
  189. "yAxis": 1,
  190. },
  191. Object {
  192. "color": undefined,
  193. "isVisible": true,
  194. "label": undefined,
  195. "yAxis": 1,
  196. },
  197. Object {
  198. "color": undefined,
  199. "isVisible": true,
  200. "label": undefined,
  201. "yAxis": 1,
  202. },
  203. Object {
  204. "color": undefined,
  205. "isVisible": true,
  206. "label": undefined,
  207. "yAxis": 1,
  208. },
  209. Object {
  210. "color": undefined,
  211. "isVisible": true,
  212. "label": undefined,
  213. "yAxis": 1,
  214. },
  215. Object {
  216. "color": undefined,
  217. "isVisible": true,
  218. "label": undefined,
  219. "yAxis": 1,
  220. },
  221. Object {
  222. "color": undefined,
  223. "isVisible": true,
  224. "label": undefined,
  225. "yAxis": 1,
  226. },
  227. Object {
  228. "color": undefined,
  229. "isVisible": true,
  230. "label": undefined,
  231. "yAxis": 1,
  232. },
  233. Object {
  234. "color": undefined,
  235. "isVisible": true,
  236. "label": undefined,
  237. "yAxis": 1,
  238. },
  239. Object {
  240. "color": undefined,
  241. "isVisible": true,
  242. "label": undefined,
  243. "yAxis": 1,
  244. },
  245. Object {
  246. "color": undefined,
  247. "isVisible": true,
  248. "label": undefined,
  249. "yAxis": 1,
  250. },
  251. Object {
  252. "color": undefined,
  253. "isVisible": true,
  254. "label": undefined,
  255. "yAxis": 1,
  256. },
  257. Object {
  258. "color": undefined,
  259. "isVisible": true,
  260. "label": undefined,
  261. "yAxis": 1,
  262. },
  263. Object {
  264. "color": undefined,
  265. "isVisible": true,
  266. "label": undefined,
  267. "yAxis": 1,
  268. },
  269. Object {
  270. "color": undefined,
  271. "isVisible": true,
  272. "label": undefined,
  273. "yAxis": 1,
  274. },
  275. Object {
  276. "color": undefined,
  277. "isVisible": true,
  278. "label": undefined,
  279. "yAxis": 1,
  280. },
  281. Object {
  282. "color": undefined,
  283. "isVisible": true,
  284. "label": undefined,
  285. "yAxis": 1,
  286. },
  287. ]
  288. }
  289. onLabelClick={[Function]}
  290. placement="under"
  291. />
  292. </Fragment>
  293. `;
  294. exports[`Render should show query return no time series 1`] = `
  295. <Fragment>
  296. <div
  297. className="explore-graph"
  298. id="graph"
  299. style={
  300. Object {
  301. "height": 100,
  302. }
  303. }
  304. />
  305. <GraphLegend
  306. displayMode="list"
  307. items={Array []}
  308. onLabelClick={[Function]}
  309. placement="under"
  310. />
  311. </Fragment>
  312. `;