st">Send!</a>
  </p>

  <script>
    XHRMock.post("/json", function(req, res) {
      return res.status(200)
      .body('<span>' + JSON.parse(req.body()).user.name + '</span>');
    });
    test(async (el, t) => {
      el.$('a').click();
      await t.delay(1);
      let res = decodeURIComponent(el.$('span').innerText);
      t.assert(res + ' == Sanya', res == 'Sanya');
    });
  </script>
</div>
