title: How to call a java script function located in another module in mocha test case
body: <p>Suppose, I have a.js located in xyz/module1 path. I want to call checkEmpty function in my mocha test case located in xyz/module2.
  a.js :</p>
  <pre><code>function checkEmpty(val){
    if(val != null &amp;&amp; val != &quot;&quot;){
      return false;
    }
   return true;
  }
  </code></pre>
  <p>testcase.js:</p>
  <pre><code>describe('testcase', function () {
    var val = &quot;&quot;;
    it('Validating empty string', () =&gt; {
      //call checkEmpty
    });
  });
  </code></pre>
  <p>I can achieve it by exporting the function in a.js but I don't want to use the export statement. Can someone help me with this?</p>