snap-shot-core
Advanced tools
Comparing version 7.1.12 to 7.1.13
{ | ||
"name": "snap-shot-core", | ||
"description": "Save / load named snapshots, useful for tests", | ||
"version": "7.1.12", | ||
"version": "7.1.13", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -103,4 +103,4 @@ "bugs": "https://github.com/bahmutov/snap-shot-core/issues", | ||
"sinon": "6.3.5", | ||
"snap-shot-it": "6.2.8", | ||
"standard": "11.0.1", | ||
"snap-shot-it": "6.2.9", | ||
"standard": "12.0.1", | ||
"stop-only": "2.2.5" | ||
@@ -114,3 +114,3 @@ }, | ||
"folktale": "2.3.2", | ||
"is-ci": "1.2.1", | ||
"is-ci": "2.0.0", | ||
"jsesc": "2.5.2", | ||
@@ -117,0 +117,0 @@ "lazy-ass": "1.6.0", |
@@ -75,3 +75,3 @@ 'use strict' | ||
function raiseIfDifferent ({value, expected}) { | ||
function raiseIfDifferent ({ value, expected }) { | ||
cy.then(() => { | ||
@@ -78,0 +78,0 @@ expect(value).to.equal(expected) |
@@ -72,3 +72,10 @@ 'use strict' | ||
la(is.unemptyString(value), 'expected string value', value) | ||
const withNewLines = '\n' + value + '\n' | ||
// jsesc replace "\n" with "\\n" | ||
// https://github.com/mathiasbynens/jsesc/issues/20 | ||
const serialized = value.split('\n').map(line => { | ||
return jsesc(line, { | ||
'quotes': 'backtick' | ||
}) | ||
}).join('\n') | ||
const withNewLines = '\n' + serialized + '\n' | ||
return `exports['${name}'] = \`${withNewLines}\`\n` | ||
@@ -75,0 +82,0 @@ } |
34851
724
+ Addedci-info@2.0.0(transitive)
+ Addedis-ci@2.0.0(transitive)
- Removedci-info@1.6.0(transitive)
- Removedis-ci@1.2.1(transitive)
Updatedis-ci@2.0.0