use commonProps and remove dive from ReportEdit tests

XMLWordPrintable

    • S

      The first line of every test of the ReportEdit tests currently looks like this:

      const node = shallow(<ReportEdit report={report} />).dive();
      

      I would like it to look like this:

      const node = shallow(<ReportEdit {...props} />);
      

      because that would be more consistent with how we do it in other tests. The props should contain a mock of the mightFail prop. Maybe we can use the OverviewStore.test as reference

            Assignee:
            Unassigned
            Reporter:
            Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: