Socket
Socket
Sign inDemoInstall

jest-serializer-html

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-serializer-html - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

__tests__/index.js

10

CHANGELOG.md

@@ -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)

2

index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc