title: How to assert in a JPM test
body: <p>My synthetic test:</p>
  
  <pre><code>exports.testAssertObject = function(assert) {
      console.log(arguments);
      assert.ok(assert, "Assert object exists");
  };
  </code></pre>
  
  <p>fails in JPM with <code>TypeError: assert.ok is not a function</code>:</p>
  
  <pre><code>$jpm --version
  0.0.29
  $jpm test
  JPM undefined Starting jpm test on Reuse Tab
  Creating XPI
  JPM undefined XPI created at ...\AppData\Local\Temp\jid1-K8e1vROHVMoXWQ@jetpack-0.6.1.xpi (327ms)
  Created XPI at ...\AppData\Local\Temp\jid1-K8e1vROHVMoXWQ@jetpack-0.6.1.xpi
  JPM undefined Creating a new profile
  Running tests on Firefox 38.0a2/Gecko 38.0a2 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under winnt/x86.
  console.log: reusetab: {"0":{"console":{},"passed":0,"failed":0,"testRunSummary":[],"expectFailNesting":0,"test":{"name":"./test/test-utils.testAssertObject","passed":0,"failed":0,"errors":{},"last":"START"},"isDone":false,"waitTimeout":null}}
  console.error: reusetab: 
  JPM undefined   Message: ReferenceError: assert is not defined
    Stack:
      exports.testAssertObject@resource://gre/modules/commonjs/toolkit/loader.js -&gt; resource://jid1-k8e1vrohvmoxwq-at-jetpack/test/test-utils.js:3:2
  start@resource://gre/modules/commonjs/toolkit/loader.js -&gt; resource://gre/modules/commonjs/sdk/deprecated/unit-test.js:559:7
  startMany/runNextTest/&lt;@resource://gre/modules/commonjs/toolkit/loader.js -&gt; resource://gre/modules/commonjs/sdk/deprecated/unit-test.js:522:11
  Handler.prototype.process@resource://gre/modules/Promise.jsm -&gt; resource://gre/modules/Promise-backend.js:867:23
  this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -&gt; resource://gre/modules/Promise-backend.js:746:7
  this.PromiseWalker.scheduleWalkerLoop/&lt;@resource://gre/modules/Promise.jsm -&gt; resource://gre/modules/Promise-backend.js:688:37
  
  
  
  0 of 1 tests passed.
  There were test failures...
  </code></pre>
  
  <p>I assume, that <a href="https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Unit_testing" rel="nofollow">unlike cfx</a>, jpm does not pass <a href="https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/test_assert" rel="nofollow">assert object</a> as test method argument?</p>
  
  <p>How do I implement assertion and <a href="http://wiki.commonjs.org/wiki/Unit_Testing/1.1#Asynchronous_tests" rel="nofollow">notify "done" in async tests</a>?</p>