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.

GlobalNav-test.tsx.snap 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: anonymous users 1`] = `
  3. <NavBar
  4. className="navbar-global"
  5. height={48}
  6. id="global-navigation"
  7. >
  8. <withAppStateContext(GlobalNavBranding) />
  9. <withAppStateContext(GlobalNavMenu)
  10. currentUser={
  11. Object {
  12. "isLoggedIn": false,
  13. }
  14. }
  15. location={
  16. Object {
  17. "pathname": "",
  18. }
  19. }
  20. />
  21. <ul
  22. className="global-navbar-menu global-navbar-menu-right"
  23. >
  24. <EmbedDocsPopupHelper />
  25. <withRouter(Search)
  26. currentUser={
  27. Object {
  28. "isLoggedIn": false,
  29. }
  30. }
  31. />
  32. <withRouter(GlobalNavUser)
  33. currentUser={
  34. Object {
  35. "isLoggedIn": false,
  36. }
  37. }
  38. />
  39. </ul>
  40. </NavBar>
  41. `;
  42. exports[`should render correctly: logged in users 1`] = `
  43. <NavBar
  44. className="navbar-global"
  45. height={48}
  46. id="global-navigation"
  47. >
  48. <withAppStateContext(GlobalNavBranding) />
  49. <withAppStateContext(GlobalNavMenu)
  50. currentUser={
  51. Object {
  52. "isLoggedIn": true,
  53. }
  54. }
  55. location={
  56. Object {
  57. "pathname": "",
  58. }
  59. }
  60. />
  61. <ul
  62. className="global-navbar-menu global-navbar-menu-right"
  63. >
  64. <EmbedDocsPopupHelper />
  65. <withRouter(Search)
  66. currentUser={
  67. Object {
  68. "isLoggedIn": true,
  69. }
  70. }
  71. />
  72. <withRouter(GlobalNavUser)
  73. currentUser={
  74. Object {
  75. "isLoggedIn": true,
  76. }
  77. }
  78. />
  79. </ul>
  80. </NavBar>
  81. `;