it('should have name', ->
expect(player.name).toEqual("John")
)
)
But test is failed because match_player file included on the page
after test executed. It's easy to debug - when I'm doing
console.log(MatchPlayer) in the test - undefined shown when page
restarted. But after page is loaded - MatchPlayer is defined and works
correctly (trying via console).
I'm feeling that I'm missing something basic here, please, let me know
how to fix this.
Thanks in advance