Comparing version 0.2.2 to 0.2.3
@@ -197,9 +197,8 @@ const kleur = require('kleur'); | ||
if (/\r?\n/.test(String(expect))) { | ||
return lines(input, expect); | ||
} | ||
let isA = typeof input == 'string'; | ||
let isB = typeof expect == 'string'; | ||
if (typeof expect == 'string') { | ||
return chars(input, expect); | ||
} | ||
if (isA && /\r?\n/.test(input)) return lines(input, ''+expect); | ||
if (isB && /\r?\n/.test(expect)) return lines(''+input, expect); | ||
if (isA && isB) return chars(input, expect); | ||
@@ -206,0 +205,0 @@ return direct(input, expect); |
{ | ||
"name": "uvu", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"repository": "lukeed/uvu", | ||
@@ -5,0 +5,0 @@ "description": "uvu is an extremely fast and lightweight test runner for Node.js and the browser", |
@@ -125,5 +125,6 @@ <div align="center"> | ||
``` | ||
~> "jest" took 1,630ms (861 ms) | ||
~> "mocha" took 215ms ( 3 ms) | ||
~> "tape" took 132ms ( ??? ) | ||
~> "ava" took 598ms ( ??? ) | ||
~> "jest" took 1,560ms (839 ms) | ||
~> "mocha" took 212ms ( 4 ms) | ||
~> "tape" took 129ms ( ??? ) | ||
~> "uvu" took 74ms ( 1.4ms) | ||
@@ -130,0 +131,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
42053
136
1012