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.

Extension-test.tsx.snap 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render React extensions correctly 1`] = `
  3. <Extension
  4. currentUser={
  5. Object {
  6. "isLoggedIn": false,
  7. }
  8. }
  9. extension={
  10. Object {
  11. "key": "foo",
  12. "name": "Foo",
  13. }
  14. }
  15. intl={Object {}}
  16. location={
  17. Object {
  18. "action": "PUSH",
  19. "hash": "",
  20. "key": "key",
  21. "pathname": "/path",
  22. "query": Object {},
  23. "search": "",
  24. "state": Object {},
  25. }
  26. }
  27. onFail={[MockFunction]}
  28. router={
  29. Object {
  30. "createHref": [MockFunction],
  31. "createPath": [MockFunction],
  32. "go": [MockFunction],
  33. "goBack": [MockFunction],
  34. "goForward": [MockFunction],
  35. "isActive": [MockFunction],
  36. "push": [MockFunction],
  37. "replace": [MockFunction],
  38. "setRouteLeaveHook": [MockFunction],
  39. }
  40. }
  41. >
  42. <div>
  43. <HelmetWrapper
  44. defer={true}
  45. encodeSpecialCharacters={true}
  46. title="Foo"
  47. >
  48. <SideEffect(NullComponent)
  49. defer={true}
  50. encodeSpecialCharacters={true}
  51. title="Foo"
  52. >
  53. <NullComponent
  54. defer={true}
  55. encodeSpecialCharacters={true}
  56. title="Foo"
  57. />
  58. </SideEffect(NullComponent)>
  59. </HelmetWrapper>
  60. <div />
  61. </div>
  62. </Extension>
  63. `;
  64. exports[`should render React extensions correctly 2`] = `
  65. <Extension
  66. currentUser={
  67. Object {
  68. "isLoggedIn": false,
  69. }
  70. }
  71. extension={
  72. Object {
  73. "key": "foo",
  74. "name": "Foo",
  75. }
  76. }
  77. intl={Object {}}
  78. location={
  79. Object {
  80. "action": "PUSH",
  81. "hash": "",
  82. "key": "key",
  83. "pathname": "/path",
  84. "query": Object {},
  85. "search": "",
  86. "state": Object {},
  87. }
  88. }
  89. onFail={[MockFunction]}
  90. router={
  91. Object {
  92. "createHref": [MockFunction],
  93. "createPath": [MockFunction],
  94. "go": [MockFunction],
  95. "goBack": [MockFunction],
  96. "goForward": [MockFunction],
  97. "isActive": [MockFunction],
  98. "push": [MockFunction],
  99. "replace": [MockFunction],
  100. "setRouteLeaveHook": [MockFunction],
  101. }
  102. }
  103. >
  104. <div>
  105. <HelmetWrapper
  106. defer={true}
  107. encodeSpecialCharacters={true}
  108. title="Foo"
  109. >
  110. <SideEffect(NullComponent)
  111. defer={true}
  112. encodeSpecialCharacters={true}
  113. title="Foo"
  114. >
  115. <NullComponent
  116. defer={true}
  117. encodeSpecialCharacters={true}
  118. title="Foo"
  119. />
  120. </SideEffect(NullComponent)>
  121. </HelmetWrapper>
  122. <div
  123. className="extension"
  124. />
  125. </div>
  126. </Extension>
  127. `;