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

Improve content negotiation tests for better coverage #1067

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

Pchelolo
Copy link
Contributor

A couple of buggy misleading tests fixed.

cc @wikimedia/services

@@ -42,10 +49,11 @@ describe('Content negotiation', function() {
const wrongContentTypeAccept = currentParsoidContentType
.replace(/text\/html/, 'application/json')
.replace(/\d+\.\d+\.\d+"$/, `${PARSOID_SUPPORTED_DOWNGRADE}"`);
console.log(wrongContentTypeAccept);
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops

@d00rman d00rman merged commit e4016d8 into wikimedia:master Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants