-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Conversation
+1 |
Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement). CLA is important for us to be able to avoid legal troubles down the road. For individuals (a simple click-through form): For corporations (print, sign and scan+email, fax or mail): |
@mhevery I've signed the CLA. |
MERGED |
It's true but that code is guarded on a condition which checks for On Wed, Oct 17, 2012 at 11:04 AM, Jack Chu [email protected] wrote:
|
@camwest's angular-mocks.js seems to be different than the one in this repo. This one doesn't redefine Also, the Jasmine version of |
Weird. I thought it got merged in. Cameron Westland On Saturday, 20 October, 2012 at 10:28 AM, Tasveer Singh wrote:
|
Yeah me too :) Maybe @mhevery can take a look? |
As far as I can tell, #1467 is a real issue and is still correct, and is (as explained above) due to the difference between bbe0a9c (@camwest fork) and 92558fe (what actually got merged to master for 1.1.1). It hasn't changed since 1.1.1, so it's still broken; I monkey-patched isSpecRunning() to look like 92558fe and that seems to work. Is it better to use one of the existing issue reports to track this or open a new one? |
When running inside Mocha, don't look in Jasmine's spec.queue.running. It's not there. This is documented as issue angular#1467; I think this issue was also responsible for angular#1589 and recent complaints in angular#1253. Closes angular#1467.
I don't think this is fixed in the 1.0.8 version of angular-mocks.js. |
Hey there,
Here is a simple pull request to add mocha support to angular-mocks. I'm not exactly sure the right way to test this as jasmine is always going to be present in the test suite.
If someone can point me in the right direction I'll implement the proper tests.