[zanata/zanata-platform] 3611c5: test(ZNTA-1927): update tests, add enzyme

GitHub noreply at github.com
Mon Sep 18 06:46:06 UTC 2017


  Branch: refs/heads/damason/settings/ZNTA-1927
  Home:   https://github.com/zanata/zanata-platform
  Commit: 3611c50b4e6a2665d64ce7c2e204e8732b93d017
      https://github.com/zanata/zanata-platform/commit/3611c50b4e6a2665d64ce7c2e204e8732b93d017
  Author: David Mason <drdmason at gmail.com>
  Date:   2017-09-18 (Mon, 18 Sep 2017)

  Changed paths:
    M server/zanata-frontend/src/frontend/app/editor/actions/settings-actions.js
    M server/zanata-frontend/src/frontend/app/editor/components/Pager/Pager.test.js
    M server/zanata-frontend/src/frontend/app/editor/components/UiLanguageDropdown/UiLanguageDropdown.test.js
    M server/zanata-frontend/src/frontend/app/editor/reducers/settings-reducer.test.js
    M server/zanata-frontend/src/frontend/app/editor/reducers/ui-reducer.test.js
    M server/zanata-frontend/src/frontend/build/messages/app/editor/components/ActivityFeedItem/index.json
    M server/zanata-frontend/src/frontend/package.json
    M server/zanata-frontend/src/frontend/yarn.lock

  Log Message:
  -----------
  test(ZNTA-1927): update tests, add enzyme

Updated tests. Was having issues trying to render a stateless component
since that is not well supported by the standard TestUtils. Used enzyme
in that test instead, which supports stateless components and has a
cleaner API anyway. We should use enzyme in all our tests.




More information about the zanata-commits mailing list