title: Jasmine Jquery TypeError: Cannot read property 'find' of undefined
body: <p>My task is to set the table header width=250px and unit test it with Jasmine. Below code runs perfectly on JSFiddle site but when I am trying to run in the project it shows the error: "Cannot read property 'find' of undefined" in the Developer Tool of Chrome browser.</p>
  
  <p>Test File: </p>
  
  <pre><code>describe('The success button', function(){   
     var fixture;
     beforeEach(function() {
     setStyleFixtures('th.reportHeaderCell { width:250px; }');
     fixture = setFixtures('&lt;table&gt; &lt;tr&gt;&lt;th class="reportHeaderCell"&gt;Success&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;');
    });
  
     it('should have width= 250px', function() {
     var successHeader = fixture.find('.reportHeaderCell');
     expect(successHeader.css('width')).toEqual('250px');
    });
  });
  </code></pre>
  
  <p>I took reference from the below blog:
  <a href="http://www.itsmycodeblog.com/jasmine-jquery-testing-css/" rel="nofollow noreferrer">http://www.itsmycodeblog.com/jasmine-jquery-testing-css/</a></p>
  
  <p>This is my first time testing with Jasmine. Any help is appreciated.</p>