Skip to content

Instantly share code, notes, and snippets.

@GulinSS
Last active December 21, 2015 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GulinSS/6351725 to your computer and use it in GitHub Desktop.
Save GulinSS/6351725 to your computer and use it in GitHub Desktop.
ascii art in coffee tests
it "should resolve promise on click event of element and hide itself", test ->
resolve = jasmine.createSpy("on resolve")
@instance.promise.then resolve
@$apply =>
$("li:eq(1) a", @$menu()).click()
expect(resolve.method.mostRecentCall.args[0].text).toBe @parameters.elements[1].text
expect(@$menu().length).toBe 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment