1. 09 Jan, 2020 2 commits
    • Robert Knight's avatar
      Modify a mocking idiom that doesn't work with ES modules · 426d2670
      Robert Knight authored
      We have an idiom in many tests where we import the "default export" from
      a module and then access the `$imports` property on that
      function/class/object in order to mock or unmock imports. For example:
      
      ```
      const Widget = require('../widget');
      
      beforeEach(() => {
        Widget.$imports.$mock(...);
      });
      
      afterEach(() => {
        Widget.$imports.$restore();
      });
      ```
      
      This won't work when the module under test is converted to an ES module
      because the `$imports` object will become a separate export from the
      module rather than a property of the default export.
      426d2670
    • Lyza Gardner's avatar
      Merge pull request #1651 from hypothesis/delete-flag-annotation-actions · 7ae48f7e
      Lyza Gardner authored
      Move `delete` and `flag` logic into `AnnotationActionBar` sub-component
      7ae48f7e
  2. 08 Jan, 2020 10 commits
  3. 07 Jan, 2020 1 commit
  4. 06 Jan, 2020 21 commits
  5. 03 Jan, 2020 6 commits