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.

GlobalNavUser-test.tsx.snap 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render the right interface for anonymous user 1`] = `
  3. <li>
  4. <a
  5. className="navbar-login"
  6. href="/sessions/new"
  7. onClick={[Function]}
  8. >
  9. layout.login
  10. </a>
  11. </li>
  12. `;
  13. exports[`should render the right interface for logged in user 1`] = `
  14. <Dropdown
  15. className="js-user-authenticated"
  16. overlay={
  17. <ul
  18. className="menu"
  19. >
  20. <li
  21. className="menu-item"
  22. >
  23. <div
  24. className="text-ellipsis text-muted"
  25. title="Skywalker"
  26. >
  27. <strong>
  28. Skywalker
  29. </strong>
  30. </div>
  31. </li>
  32. <li
  33. className="divider"
  34. />
  35. <li>
  36. <Link
  37. onlyActiveOnIndex={false}
  38. style={Object {}}
  39. to="/account"
  40. >
  41. my_account.page
  42. </Link>
  43. </li>
  44. <li>
  45. <a
  46. href="#"
  47. onClick={[Function]}
  48. >
  49. layout.logout
  50. </a>
  51. </li>
  52. </ul>
  53. }
  54. tagName="li"
  55. >
  56. <a
  57. className="dropdown-toggle navbar-avatar"
  58. href="#"
  59. title="Skywalker"
  60. >
  61. <withAppStateContext(Avatar)
  62. name="Skywalker"
  63. size={32}
  64. />
  65. </a>
  66. </Dropdown>
  67. `;