zulip/frontend_tests
Steve Howell 9c8fa3930f node tests: Eliminate many __Rewire__ calls.
For most functions that we were using __Rewire__ for,
it's better to just use the override helper, which
use __Rewire__ under the hood, but also resets
the reference at the end of run_tests.

Another nice thing about override() is that it reports
when you never actually needed the mock, and this
commit fixes the instances found here.

I didn't replace every call to __Rewire__. The
remaining ones fall under these categories:

    * I looked for ") =>" in my code sweep,
      so I missed stuff like "noop" helpers.

    * Sometimes we directly update something
      in a module that's not a function. This
      is generally evil, and we should use setters.

    * Some tests have setup() helpers or similar
      that complicated this code sweep, so I
      simply punted.

    * Somes modules rely on intra-test leaks. We
      should fix those, but I just punted for the
      main code sweep.
2021-03-07 11:19:33 -05:00
..
node_tests node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
puppeteer_lib puppeteer_test: Add missing `await` checking compose content. 2021-03-04 09:41:49 -08:00
puppeteer_tests puppeteer_test: Skip tests that require file upload for Firefox. 2021-03-04 09:41:24 -08:00
zjsunit zjsunit: Allow multiple overrides again. 2021-03-07 11:19:33 -05:00