Comparing version 5.0.3 to 5.0.4
@@ -141,4 +141,6 @@ class Format { | ||
case 'bigint': | ||
/* istanbul ignore next - node version specific */ | ||
case 'bigint': { | ||
return this.object.toString() + 'n' | ||
} | ||
@@ -145,0 +147,0 @@ case 'string': |
@@ -7,2 +7,7 @@ const Format = require('./format.js') | ||
const pattern = this.expect | ||
/* istanbul ignore next - node version specific */ | ||
if (typeof BigInt === 'function' && pattern === BigInt) | ||
return typeof obj === 'bigint' | ||
return ( | ||
@@ -31,3 +36,2 @@ super.test() === true ? true | ||
: pattern === Boolean ? typeof obj === 'boolean' | ||
: pattern === BigInt ? typeof obj === 'bigint' | ||
: pattern === Map ? this.isMap() | ||
@@ -34,0 +38,0 @@ : pattern === Set ? this.isSet() |
{ | ||
"name": "tcompare", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "A comprehensive comparison library, for use in test frameworks", | ||
@@ -5,0 +5,0 @@ "main": "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
47390
1332