mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-21 13:42:28 +00:00
make devtoolslog a let because it breaks code @ work
This commit is contained in:
parent
097495615b
commit
4316f5e1c2
3 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
cypress/videos/
|
cypress/videos/
|
||||||
cypress/screenshots/
|
cypress/screenshots/
|
||||||
|
cypress/snapshots/Arrays.json
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@datashard/snapshot",
|
"name": "@datashard/snapshot",
|
||||||
"description": "Adds value / object / DOM element snapshot testing support to Cypress test runner",
|
"description": "Adds value / object / DOM element snapshot testing support to Cypress test runner",
|
||||||
"version": "2.1.8",
|
"version": "2.2.1",
|
||||||
"author": "Joshua <data@shard.wtf>, Gleb Bahmutov <gleb@cypress.io>",
|
"author": "Joshua <data@shard.wtf>, Gleb Bahmutov <gleb@cypress.io>",
|
||||||
"bugs": "https://github.com/datashard/snapshot/issues",
|
"bugs": "https://github.com/datashard/snapshot/issues",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -38,7 +38,7 @@ const set_snapshot = (
|
||||||
) => {
|
) => {
|
||||||
if (!store) return;
|
if (!store) return;
|
||||||
|
|
||||||
const devToolsLog = { $el: serialized };
|
let devToolsLog = { $el: serialized };
|
||||||
|
|
||||||
if (Cypress.dom.isJquery(value)) {
|
if (Cypress.dom.isJquery(value)) {
|
||||||
devToolsLog.$el = value;
|
devToolsLog.$el = value;
|
||||||
|
|
Loading…
Reference in a new issue