Comparing version 1.2.0-RC.2 to 1.2.0
@@ -5,3 +5,3 @@ { | ||
"author": "tbeseda", | ||
"version": "1.2.0-RC.2", | ||
"version": "1.2.0", | ||
"license": "Apache-2.0", | ||
@@ -8,0 +8,0 @@ "type": "module", |
@@ -17,6 +17,5 @@ <h1 align="center"><code>tap-arc</code> 📋</h1> | ||
- minimal, informative spec-like output for all assertions | ||
- minimal, maintained dependencies | ||
- streaming in and out | ||
- minimal, informative spec-like output for all assertion types | ||
- helpful diffing for failures | ||
- shallow graph of maintained dependencies | ||
@@ -45,3 +44,4 @@ ![tap-arc output screen shot](./screen-shot.png) | ||
💁 `tap-arc` will format output from any tap reporter. [`tape`](https://github.com/ljharb/tape) is our favorite and was used for testing. | ||
> [!IMPORTANT] | ||
> 💁 `tap-arc` will format output from any tap reporter. [`tape`](https://github.com/ljharb/tape) is our favorite and was used for testing. | ||
@@ -48,0 +48,0 @@ ### `tap-arc --help` |
@@ -19,11 +19,16 @@ import * as Diff from 'diff' | ||
const diff = Diff.diffWordsWithSpace(a, e) | ||
const output = [] | ||
let aLine = 'Actual: ' | ||
let eLine = 'Expected: ' | ||
for (const d of diff) { | ||
if (d.added) output.push(`${expected(d.value)}`) | ||
else if (d.removed) output.push(`${actual(d.value)}`) | ||
else output.push(d.value) | ||
if (d.added) eLine += expected(d.value) | ||
else if (d.removed) aLine += actual(d.value) | ||
else { | ||
eLine += d.value | ||
aLine += d.value | ||
} | ||
} | ||
return output.join('').split('\n') | ||
return [ aLine, eLine ] | ||
} | ||
@@ -30,0 +35,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30666
392
1