title: How to test nested function in jasmine?
body: <p>can we test nested function in jasmine? its giving an error as "Cannot read property 'inner' of undefined". Please look into the following, </p>
  
  <p>My test file is,</p>
  
  <pre><code>describe('sample.js', function(){
          it('test', function(){
              expect(outer()).toBe(true);
              expect(inner()).toBe(true);
          });
      });
  </code></pre>
  
  <p>And java script file is,</p>
  
  <pre><code> function outer(){
          function inner(){
              return true;
          };
          return true;
      };
  </code></pre>