javascript - TypeError: Cannot read property 'model' of undefined -


  • i trying run jasmine test cases typescript file not running...
  • can tell me how fix it...
  • providing code below...
  • but when converted js running..
  • and facing 1 more error in that...

typeerror: cannot read property 'model' of undefined

  • working fiddle

http://jsfiddle.net/om4pc7s8/1/

  • not working fiddle

https://jsfiddle.net/h6ck42kx/3/

describe("our data array", function() {   it("has 4 items", function() {     var example = new example();     expect(example.players()).tobe(0);   }); }); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -