Skip to content

Commit

Permalink
Update test expectation
Browse files Browse the repository at this point in the history
Version 0.1.1 of the dom-serializer module has corrected the way boolean
attributes are rendered when interpreted as HTML. Update this project's
expectations accordingly and explicitly rely on the release which
includes the fix.
  • Loading branch information
jugglinmike authored and fb55 committed Mar 27, 2019
1 parent 48eae25 commit 3eec3cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"css-select": "~1.2.0",
"dom-serializer": "~0.1.0",
"dom-serializer": "~0.1.1",
"entities": "~1.1.1",
"htmlparser2": "^3.9.1",
"lodash": "^4.15.0",
Expand Down
2 changes: 1 addition & 1 deletion test/cheerio.js
Expand Up @@ -368,7 +368,7 @@ describe('cheerio', function() {
var str = '<MixedCaseTag UPPERCASEATTRIBUTE=""></MixedCaseTag>',
// since parsing done without xml flag, all tags converted to lowercase
expectedXml = '<html><head/><body><mixedcasetag uppercaseattribute=""/></body></html>',
expectedNoXml = '<html><head></head><body><mixedcasetag uppercaseattribute=""></mixedcasetag></body></html>',
expectedNoXml = '<html><head></head><body><mixedcasetag uppercaseattribute></mixedcasetag></body></html>',
dom = $.load(str);

expect(dom('MixedCaseTag').get(0).tagName).to.equal('mixedcasetag');
Expand Down

0 comments on commit 3eec3cd

Please sign in to comment.