jest-serializer-html
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,11 @@ | ||
<a name="4.0.1"></a> | ||
## [4.0.1](https://github.com/rayrutjes/jest-serializer-html/compare/v4.0.0...v4.0.1) (2017-10-18) | ||
### Bug Fixes | ||
* better detect HTML by trimming string before checking for < ([aabe2e1](https://github.com/rayrutjes/jest-serializer-html/commit/aabe2e1)) | ||
<a name="4.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [4.0.0](https://github.com/rayrutjes/jest-serializer-html/compare/v3.0.0...v4.0.0) (2017-05-18) |
@@ -5,3 +5,3 @@ var toDiffableHtml = require('diffable-html'); | ||
test(object) { | ||
return typeof object === 'string' && object[0] === '<'; | ||
return typeof object === 'string' && object.trim()[0] === '<'; | ||
}, | ||
@@ -8,0 +8,0 @@ print(val) { |
{ | ||
"name": "jest-serializer-html", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Jest snapshot serializer that beautifies HTML.", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"test": "jest --verbose", | ||
"test:update": "jest --verbose --updateSnapshot" | ||
"test:update": "jest --verbose --updateSnapshot", | ||
"changelog": "conventional-changelog --preset angular --infile CHANGELOG.md --same-file" | ||
}, | ||
@@ -41,2 +42,3 @@ "files": [ | ||
"devDependencies": { | ||
"conventional-changelog-cli": "^1.3.4", | ||
"jest": "^19.0.2" | ||
@@ -43,0 +45,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7946
5
67
0
2