Last active
December 21, 2015 19:08
-
-
Save GulinSS/6351725 to your computer and use it in GitHub Desktop.
ascii art in coffee tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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