-
Notifications
You must be signed in to change notification settings - Fork 633
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
Readability.parse should expose lang attribute of original document. #721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! We're really close. I think once we have a test case for this we can get this merged :)
I added some steps you can take to get this test. You can also refer to this for additional documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! This looks good. R+ from me after addressing the assertion message
test/test-readability.js
Outdated
@@ -176,6 +176,10 @@ function runTestsWithItems(label, domGenerationFn, source, expectedContent, expe | |||
expectedMetadata.dir && it("should extract expected direction", function() { | |||
expect(result.dir).eql(expectedMetadata.dir); | |||
}); | |||
|
|||
expectedMetadata.lang && it("should extract expected direction", function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update the message here to "should extract expected lang"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't know how I missed that, should be good now! :)
No description provided.