searls/jasmine-given — pull request #33 by jsayres (2014-04-08 23:16:46+00:00)
Title: Fixed issue with Protractor when done callback is used.

Starting in Protractor v0.21.0, when done is called, an error is thrown. (See: https://github.com/angular/protractor/blob/439ed451d83968f38bc5a2cf1a726b889e677d49/jasminewd/index.js) This is to prevent the mixing of callbacks with promises for async tests. Since jasmine-given always eventually calls done(), e2e protractor tests are broken.

This fix simply prevents the final callback if there were no done callbacks in any of the original expectations, which I believe should be the expected behavior anyway.