Comparing version 6.1.0 to 6.1.1
@@ -24,6 +24,5 @@ export function fail(msg) { | ||
export function not(a, b, msg = 'should be different') { | ||
const C = class Not extends b.constructor {} | ||
this.log(isPrimitive(a) || isPrimitive(b) ? !Object.is(a, b) : !deq(a, b), 'is not', msg, { | ||
actual: slice(a), | ||
expected: Array.isArray(b) ? new C(...b) : isPrimitive(b) ? new C(b) : Object.assign(new C, b) | ||
expected: new class Not { constructor(a){this.actual = a} }(a) | ||
}) | ||
@@ -30,0 +29,0 @@ } |
{ | ||
"name": "tst", | ||
"description": "Tests without efforts", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"repository": "dy/tst", | ||
@@ -6,0 +6,0 @@ "author": "Dmitry Iv.", |
12549
243