Comparing version 7.1.0 to 7.1.1
{ | ||
"name": "tst", | ||
"description": "Tests without efforts", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"repository": "dy/tst", | ||
@@ -6,0 +6,0 @@ "author": "Dmitry Iv.", |
@@ -92,3 +92,3 @@ const GREEN = '\u001b[32m', RED = '\u001b[31m', YELLOW = '\u001b[33m', RESET = '\u001b[0m', CYAN = '\u001b[36m', GRAY = '\u001b[30m' | ||
console.log(`${RED}× ${assertIndex} — ${msg}`), | ||
(info?.actual ?? info?.expects ?? info?.expected) && ( | ||
(info && 'actual' in info) && ( | ||
console.info(`actual:${RESET}`, typeof info.actual === 'string' ? JSON.stringify(info.actual) : info.actual, RED), | ||
@@ -95,0 +95,0 @@ console.info(`expects:${RESET}`, typeof (info.expects ?? info.expected) === 'string' ? JSON.stringify(info.expects ?? info.expected) : (info.expects ?? info.expected), RED), |
13807