Comparing version 0.4.6 to 0.4.7
@@ -34,3 +34,2 @@ ({ | ||
}), | ||
'current': true, | ||
'reference': true | ||
@@ -49,3 +48,2 @@ }), | ||
}), | ||
'current': true, | ||
'reference': true | ||
@@ -52,0 +50,0 @@ }), |
12
cli.ts
@@ -41,3 +41,3 @@ #!/usr/bin/env node | ||
// Not using template functions here so we're not calling .toString on objects | ||
leftLog(depth + 1, 'Latest result:', resultSet.current); | ||
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current); | ||
if (keyInYNStrict('Use this value?')) { | ||
@@ -66,4 +66,4 @@ resultSet.reference = resultSet.current; | ||
// Not using template functions here so we're not calling .toString on objects | ||
leftLog(depth + 1, 'Reference value:', resultSet.reference); | ||
leftLog(depth + 1, 'Latest result:', resultSet.current); | ||
leftLog(depth + 1, colors.grey('Reference value:'), resultSet.reference); | ||
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current); | ||
if (keyInYNStrict('Should I replace this?')) { | ||
@@ -80,2 +80,8 @@ resultSet.reference = resultSet.current; | ||
tests.on('close', (code) => { | ||
if (code) { | ||
console.log(colors.red('--- Tests failed---')); | ||
if (!keyInYNStrict('Check baselines anyway?')) { | ||
return; | ||
} | ||
} | ||
console.log('--- BADD baselines ---'); | ||
@@ -82,0 +88,0 @@ Object.keys(allResults) |
@@ -39,3 +39,3 @@ #!/usr/bin/env node | ||
// Not using template functions here so we're not calling .toString on objects | ||
leftLog(depth + 1, 'Latest result:', resultSet.current); | ||
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current); | ||
if (readline_sync_1.keyInYNStrict('Use this value?')) { | ||
@@ -61,4 +61,4 @@ resultSet.reference = resultSet.current; | ||
// Not using template functions here so we're not calling .toString on objects | ||
leftLog(depth + 1, 'Reference value:', resultSet.reference); | ||
leftLog(depth + 1, 'Latest result:', resultSet.current); | ||
leftLog(depth + 1, colors.grey('Reference value:'), resultSet.reference); | ||
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current); | ||
if (readline_sync_1.keyInYNStrict('Should I replace this?')) { | ||
@@ -73,2 +73,8 @@ resultSet.reference = resultSet.current; | ||
tests.on('close', function (code) { | ||
if (code) { | ||
console.log(colors.red('--- Tests failed---')); | ||
if (!readline_sync_1.keyInYNStrict('Check baselines anyway?')) { | ||
return; | ||
} | ||
} | ||
console.log('--- BADD baselines ---'); | ||
@@ -75,0 +81,0 @@ Object.keys(allResults) |
{ | ||
"name": "baddsert", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "Baseline Acceptance Driven Development for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
42422
1155