title: Using Mockjax in QUnit?
body: <p>I see this example in Mockjax docs:</p>
  
  <pre><code>$.mockjax({
    url: "/rest",
    data: function ( json ) {
      assert.deepEqual( JSON.parse(json), expected ); // QUnit example.
      return true;
    }
  });
  </code></pre>
  
  <p>But I am not sure how should I use it with QUnit testing methods.
  Any ideas? </p>
  
  <p><a href="https://github.com/jakerella/jquery-mockjax" rel="nofollow noreferrer">mockjax docs</a></p>
  
  <p>I tried this but it says it expected at least one assertion, as if it doesn't run it at all, the assert line:</p>
  
  <pre><code>QUnit.test("mockjax test", function (assert) {
      $.mockjax({
          url: "/restful/fortune",
          data: function (json) {
              assert.deepEqual(JSON.parse(json), expected); // QUnit example.
              return true;
          },
          responseText: {
              status: "success",
              fortune: "Are you a mock turtle?"
          }
      });
  });
  </code></pre>