@open-wc/chai-dom-equals
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -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 @@ |
{ | ||
"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: |
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
17061
120