title: Webstorm UT - cannot find module
body: <p>I'm trying to test simple code:</p>
  
  <pre><code>function div2(a, b) {
      return a/b;
  }
  
  module.exports.div = div2;
  </code></pre>
  
  <p>And in examplesTestUnit.js file:</p>
  
  <pre><code>var calculator = require("./examples");
  
  module.exports["div test"] = function(test) {
      test.equal(calculator.div(6,2), 3);
      test.equal(calculator.div(12,0), Infinity);
      test.equal(calculator.div(0,3), 0);
      test.done();
  };
  </code></pre>
  
  <p>When I try to run test in Webstorm I got errors:</p>
  
  <pre><code>/usr/bin/node /tmp/nodeunit-intellij-starter.js /usr/lib/node_modules/nodeunit examplesTestUnit.js
  Testing started at 02:42 ...
  
  module.js:340
      throw err;
            ^
  Error: Cannot find module '/usr/lib/node_modules/nodeunit/deps/async'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at resolveAsyncModule (/tmp/nodeunit-intellij-starter.js:304:20)
      at testIt (/tmp/nodeunit-intellij-starter.js:308:21)
      at run (/tmp/nodeunit-intellij-starter.js:335:9)
      at Object.&lt;anonymous&gt; (/tmp/nodeunit-intellij-starter.js:365:1)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
  
  Process finished with exit code 8
  </code></pre>
  
  <p>I installed mocha for tests and mocha didnt gives me an errors, but there's still no results:</p>
  
  <pre><code>[DzikiChrzan@DzikiLaptopF untitled]$ mocha examplesTestUnit.js 
  
  
    0 passing (1ms)
  
  [DzikiChrzan@DzikiLaptopF untitled]$ 
  </code></pre>
  
  <p>I have installed nodeunit in 0.8.6 version and I already tried to reinstall it. 
  Plus another error I recive in terminal:</p>
  
  <pre><code>[DzikiChrzan@DzikiLaptopF untitled]$ nodeunit --
  
  /usr/lib/node_modules/nodeunit/lib/nodeunit.js:72
          if (err) throw err;
                         ^
  Error: ENOENT, stat '/home/DzikiChrzan/WebstormProjects/untitled/--'
  </code></pre>
  
  <p>I'm using Fedora 22. How can I fix this?</p>