title: How to test functions or the code inside $(document).ready() using Jasmine?
body: <p>I have multiple funcntions and a lot of code inside $(document).ready(function()). I am using jasmine to test the functions inside the ready function as well as the code inside ready() but when the test cases inside describe are executed it is not able to access the code inside the ready function().</p>
  
  <p>I have multiple functions and a lot of code inside $(document).ready(function()). I am using jasmine to test the functions inside the ready function as well as the code inside ready() but when the test cases inside describe are executed it is not able to access the code inside the ready function().</p>
  
  <pre><code>$(document).ready(function () {
      function testMe(){
          testVar = true;
      }
  });
  </code></pre>
  
  <p>Jasmine test suite</p>
  
  <pre><code>describe("test suite", function(){
      beforeEach(function () {
          testme = false
      });
      it("Test Alert Box Message For Change Modal", function() {
          expect(testme).toEqual(true);
      });
  });
  </code></pre>
  
  <p>Kindly suggest what approach needs to be taken for the above approach.</p>