Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2217

use commonProps and remove dive from ReportEdit tests

    XMLWordPrintable

Details

    • S

    Description

      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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                sebastian.stamm Sebastian Stamm
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce