text: import { h } from 'dom-chef'
  import test from 'ava'
  
  import '../../test/setup-jsdom'
  
  import { addPRLink } from './compare-page-pull-request'
  
  test('mergePagePullRequest should add a create pull request link', t => {
      const comparePage = (
          <div class="detail-summary--panel" data-contributors="[]">
              <ul class="detail-summary--section" />
          </div>
      )
  
      const comparePageAddPR = (
          <div class="detail-summary--panel" data-contributors="[]">
              <ul class="detail-summary--section">
                  <li class="detail-summary--item js-pr-create-item">
                      <span
                          class="aui-icon aui-icon-small aui-iconfont-devtools-pull-request detail-summary--icon"
                          title="Pull requests"
                      >
                          Pull requests
                      </span>
                      <a
                          href="https://bitbucket.org/user/repo/pull-requests/new?source=TEST_SOURCE&amp;dest=TEST_DESTINATION"
                          title="Create a pull request"
                      >
                          Create pull request
                      </a>
                  </li>
              </ul>
          </div>
      )
  
      addPRLink('TEST_SOURCE', 'TEST_DESTINATION', comparePage)
  
      t.is(comparePage.outerHTML, comparePageAddPR.outerHTML)
  })
  