Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix(jasmine): support "pending" it clauses with no test body #659

Closed
wants to merge 2 commits into from

Conversation

petebacondarwin
Copy link
Contributor

No description provided.

return testProxyZone.run(testBody, this, [done]);
} : function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we always return a function, won't it essentially make all specs non-pending (since there will be a callback specified)?
I think this should be:

return testBody && ((testBody.length == 0) ? function() { ... } : function { ... });

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how to test that easily...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Due to the lack of lockfile, a clean install resulted in dependencies that
caused the tests to fail.

This commit is a vain attempt to lock down dependencies (or at least the direct ones).
@@ -79,7 +79,7 @@
"ts-loader": "^0.6.0",
"tslint": "^4.1.1",
"tslint-eslint-rules": "^3.1.0",
"typescript": "^2.0.2",
"typescript": "2.1.x",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to upgrade TS in a separate PR.

@mhevery mhevery closed this in 477527e Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
mhevery pushed a commit that referenced this pull request Mar 7, 2017
@smithad15
Copy link

Just ran into this issue today. Would love to use it. Any idea on the timeline for the next release cut?

@mhevery
Copy link
Contributor

mhevery commented Mar 12, 2017 via email

@smithad15
Copy link

smithad15 commented Mar 12, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants