sparta.test.js.snap 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`SpartaPage page renders correctly 1`] = `
  3. <BaseLayout
  4. t={[Function]}
  5. >
  6. <SiteMetadata
  7. description="sparta.siteMetadata.description"
  8. image="test-file-stub"
  9. lang="en"
  10. meta={Array []}
  11. title="siteMetadata.title"
  12. />
  13. <Hero
  14. animationEnd={500}
  15. animationEndValue={-40}
  16. animationStartValue={70}
  17. chip={
  18. <Chip
  19. icon="icon-component-mock"
  20. onClick={[Function]}
  21. >
  22. sparta.hero.chipText
  23. </Chip>
  24. }
  25. image="icon-mock"
  26. indent={true}
  27. noOverflow={false}
  28. reverse={false}
  29. theme="black"
  30. title="sparta.hero.title"
  31. >
  32. <p
  33. className="SpartaPage__hero-paragraph"
  34. >
  35. sparta.hero.text
  36. </p>
  37. <HeroCard
  38. content="sparta.heroCard.markdown"
  39. counterTitle=""
  40. date={null}
  41. error={true}
  42. info={false}
  43. t={[Function]}
  44. />
  45. <TestnetModal
  46. className=""
  47. closeModal={[Function]}
  48. image="icon-mock"
  49. isOpen={false}
  50. title="sparta.modal.title"
  51. >
  52. <p>
  53. <Trans
  54. components={
  55. Array [
  56. <strong />,
  57. ]
  58. }
  59. i18nKey="sparta.modal.text"
  60. />
  61. </p>
  62. </TestnetModal>
  63. </Hero>
  64. <LayoutWrapper
  65. className=""
  66. dark={false}
  67. gradient={false}
  68. >
  69. <TitleWrapper
  70. className=""
  71. subtitle={
  72. <React.Fragment>
  73. sparta.testnetGoals.subtitle
  74. </React.Fragment>
  75. }
  76. title="sparta.testnetGoals.title"
  77. >
  78. <GoalList
  79. data={
  80. Array [
  81. Object {
  82. "text": <Trans
  83. components={
  84. Array [
  85. <Link
  86. className=""
  87. highlighted={false}
  88. to="/roles#council-member"
  89. >
  90. Council Members
  91. </Link>,
  92. ]
  93. }
  94. i18nKey="sparta.testnetGoals.goals.blockchain.text"
  95. />,
  96. "title": "sparta.testnetGoals.goals.blockchain.title",
  97. },
  98. Object {
  99. "state": "postponed",
  100. "text": "sparta.testnetGoals.goals.bugs.text",
  101. "title": "sparta.testnetGoals.goals.bugs.title",
  102. },
  103. ]
  104. }
  105. />
  106. </TitleWrapper>
  107. </LayoutWrapper>
  108. <LayoutWrapper
  109. className=""
  110. dark={true}
  111. gradient={false}
  112. >
  113. <TitleWrapper
  114. className=""
  115. subtitle=""
  116. title="sparta.roles.title"
  117. >
  118. <ColumnsLayout
  119. className=""
  120. columnsCount={2}
  121. largeSpacing={false}
  122. >
  123. <RoleList
  124. content={
  125. Object {
  126. "contentCreatorsCount": 20,
  127. "contentCuratorsCount": 3,
  128. "councilMembersCount": 12,
  129. "storageProviders": 10,
  130. "validatorsCount": 20,
  131. }
  132. }
  133. oldTestnet={true}
  134. roles={
  135. Array [
  136. Object {
  137. "hasLabel": true,
  138. "image": "icon-component-mock",
  139. "key": "validatorsCount",
  140. "title": "rolesData.validator",
  141. "to": "/roles#validator",
  142. "type": "most",
  143. },
  144. Object {
  145. "hasLabel": true,
  146. "image": "icon-component-mock",
  147. "key": "councilMembersCount",
  148. "title": "rolesData.councilMember",
  149. "to": "/roles#council-member",
  150. "type": "most",
  151. },
  152. ]
  153. }
  154. t={[Function]}
  155. />
  156. </ColumnsLayout>
  157. </TitleWrapper>
  158. </LayoutWrapper>
  159. <MapInfo
  160. className=""
  161. location="sparta"
  162. title="sparta.map.title"
  163. >
  164. <p>
  165. <Trans
  166. components={
  167. Array [
  168. <strong />,
  169. <br />,
  170. ]
  171. }
  172. i18nKey="sparta.map.text"
  173. />
  174. </p>
  175. </MapInfo>
  176. </BaseLayout>
  177. `;