tm-content-parser
Advanced tools
Comparing version 1.0.11 to 1.0.12-SNAPSHOT-2
@@ -245,3 +245,3 @@ "use strict"; | ||
'font', 'h1', 'h2', 'h3', 'h4', | ||
'h5', 'h6', 'i', 'p', 'small', | ||
'h5', 'h6', 'i', 'p', 'small', 'span', | ||
'strike', 'strong', 'sub', 'sup', 'tt', | ||
@@ -248,0 +248,0 @@ 'u', 'ul', 'ol', 'li' |
{ | ||
"name": "tm-content-parser", | ||
"version": "1.0.11", | ||
"version": "1.0.12-SNAPSHOT-2", | ||
"description": "Trinity Mirror Content Type Parser", | ||
@@ -9,2 +9,3 @@ "main": "index.js", | ||
"test": "istanbul cover _mocha -- -R spec --recursive test/", | ||
"test:watch": "nodemon --exec yarn test", | ||
"pretest": "npm run lint", | ||
@@ -11,0 +12,0 @@ "posttest": "npm outdated -l || true", |
@@ -285,2 +285,10 @@ "use strict"; | ||
}); | ||
}); | ||
describe('AB-564 formatHtml() with span', () => { | ||
const formatHtml = contentTypeParser.__get__('formatHtml '); | ||
it('should return type text when html has span element inside', () => { | ||
const html2 = '\n<h3> <span>Khan versus Cummings</span> </h3> \n'; | ||
formatHtml(html2).should.deepEqual({ type: 'text', body: '<h3> <span>Khan versus Cummings</span> </h3>' }); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1366
69043
11
2
1