Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jsunit filesclient #22130

Merged
merged 2 commits into from
Feb 4, 2016
Merged

Fix jsunit filesclient #22130

merged 2 commits into from
Feb 4, 2016

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Feb 4, 2016

Fixes #22123

This will make the JS unit tests on master pass again.

Please review @rullzer @blizzz @icewind1991 @MorrisJobke @nickvergessen @DeepDiver1975

Vincent Petry added 2 commits February 4, 2016 15:38
Remove double leading slash in path.
Add utf-8 in default content type.
Instead of trying to mock the promise, just stub davclient.js' request
object.
@PVince81 PVince81 added this to the 9.0-current milestone Feb 4, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @DeepDiver1975 to be a potential reviewer

@PVince81
Copy link
Contributor Author

PVince81 commented Feb 4, 2016

If you wonder why I changed some test results and add "oc:fileid": turns out that the tests weren't failing properly when run in phantomjs, but did in Chromium. Now with the upgrade to the newer phantomjs versions they also do fail there. That's why it only started failing now: #22123.

Why they didn't fail, I suppose it was due to the ES6 Promise shim that somehow made it not run some of the then() conditions. This PR doesn't rely on that one any more.

I adjusted the tests to match some older changes which were supposed to break the tests but didn't, due to the reason explained above.

@LukasReschke
Copy link
Member

Works fine 👍

@rullzer
Copy link
Contributor

rullzer commented Feb 4, 2016

👍

DeepDiver1975 added a commit that referenced this pull request Feb 4, 2016
@DeepDiver1975 DeepDiver1975 merged commit e22b2d8 into master Feb 4, 2016
@DeepDiver1975 DeepDiver1975 deleted the fix-jsunit-filesclient branch February 4, 2016 15:50
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
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.

JS tests failing after npm / jasmine update
5 participants