Skip to content

Instantly share code, notes, and snippets.

@atleastimtrying
Created March 14, 2013 11:26
Show Gist options
  • Save atleastimtrying/5160612 to your computer and use it in GitHub Desktop.
Save atleastimtrying/5160612 to your computer and use it in GitHub Desktop.
event driven tests
describe 'player movement', ->
it 'moves up when clicked', ->
playerStartPosition = $('.player').offset().top
$('button.up').trigger('click')
playerEndPosition = $('.player').offset().top
expect(playerStartPosition).not.toBe playerEndPosition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment