title: Testing JavaScript functions inside anonymous functions
body: <p>Is it possible to test <code>myInnerFunction</code> below?</p>
  
  <pre><code>var val = function() {
      var myInnerfunction = function(input) {
          return input + ' I ADDED THIS';
      };
      return myInnerfunction('test value');
  }();
  </code></pre>
  
  <p>Because <code>myInnerFunction</code> is essentially a private member of the anonymously executed outer function, it doesn't seem like it is testable from the outside.</p>