Module using another function of the same module : <p>I have something like this:</p>

<ul>
<li>MyModule

<ul>
<li><code>index.js</code></li>
<li><code>myFunction1.js</code></li>
<li><code>myFunction2.js</code></li>
</ul></li>
</ul>

<p>In <code>index.js</code> file i'm exporting all modules function (<code>myFunction1</code> and <code>myFunction2</code>). But, in <code>myFunction2</code> I use <code>myFunction1</code>.</p>

<p>If I import the index (all the module) and call it like <code>MyModule.myFunction1</code> inside <code>myFunction2</code>, I get an error (function does not exists).</p>

<p>If I import <code>myFunction1.js</code> and call it like <code>myFunction1()</code>, I can't make an Stub of it when I'm going to test it.</p>

<p>Any aproach to do something like this?</p>
