Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@open-wc/chai-dom-equals

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-wc/chai-dom-equals - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

4

chai-dom-equals.js

@@ -71,5 +71,7 @@ import { getDiffableSemanticHTML } from '@open-wc/semantic-dom-diff';

} catch (error) {
/* eslint-disable no-console */
console.log('Snapshot changed, want to accept the change:');
console.log('');
console.log(actualHTML);
/* eslint-enable no-console */
throw error;

@@ -86,5 +88,7 @@ }

} catch (error) {
/* eslint-disable no-console */
console.log('Snapshot changed, want to accept the change:');
console.log('');
console.log(actualHTML);
/* eslint-enable no-console */
throw error;

@@ -91,0 +95,0 @@ }

@@ -6,2 +6,13 @@ # Change Log

# [0.9.0](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/compare/@open-wc/chai-dom-equals@0.8.0...@open-wc/chai-dom-equals@0.9.0) (2019-01-02)
### Features
* **testing-helpers:** fixture can handle strings and TemplateResults ([0649ea0](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/commit/0649ea0))
# [0.8.0](https://github.com/open-wc/open-wc/tree/master/packages/chai-dom-equals/compare/@open-wc/chai-dom-equals@0.7.4...@open-wc/chai-dom-equals@0.8.0) (2018-12-29)

@@ -8,0 +19,0 @@

6

package.json
{
"name": "@open-wc/chai-dom-equals",
"version": "0.8.0",
"version": "0.9.0",
"description": "Chai Plugin to compare dom and shadow dom trees. Part of open-wc recommendations",

@@ -25,3 +25,3 @@ "author": "open-wc",

"@bundled-es-modules/chai": "^4.2.0",
"@open-wc/testing-helpers": "^0.6.4",
"@open-wc/testing-helpers": "^0.7.0",
"@open-wc/testing-karma": "^0.4.2",

@@ -33,3 +33,3 @@ "@open-wc/testing-karma-bs": "^0.2.2",

},
"gitHead": "09fab1de027f048221088af5dd20b9cb73c6e58a"
"gitHead": "54c367d31859c77799b82b197749c6ebcd00cb1a"
}

@@ -56,3 +56,3 @@ # Testing Chai Dom Equals

## Literal matching
By default dom is diffed 'semantically'. Differences in whitespace, newlines, attributes/class order are ignored and style, script and commend nodes are removed.
By default dom is diffed 'semantically'. Differences in whitespace, newlines, attributes/class order are ignored and style, script and comment nodes are removed.

@@ -59,0 +59,0 @@ If you want to match literally instead you can use some of the provided utilities to handle diffing on browsers with the shadow dom polyfill:

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