title: Testing async componentDidMount that calls setState, with jest/enzyme
body: <p>i have the following code inside my <code>async componentdidmount</code>:</p>
  
  <pre><code>async componentDidMount() {
      try {
          let responseText = await API.Licensing()
          this.setState({ html: responseText })
      } catch (e) {
          this.setState({ html: 'Error Fetching Licensing Info' })
      }
  }
  </code></pre>
  
  <p>i've been confused as to how to test the setstate here, since most examples from the internet uses promises then/catch while this one uses try/catch async/await.</p>
  
  <p>how would the test look like?</p>