chai 4.3.3 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chai.js +3 -0
- package/lib/chai/utils/inspect.js +3 -0
- package/package.json +1 -1
package/chai.js
CHANGED
|
@@ -8746,6 +8746,9 @@ function formatPrimitive(ctx, value) {
|
|
|
8746
8746
|
|
|
8747
8747
|
case 'symbol':
|
|
8748
8748
|
return ctx.stylize(value.toString(), 'symbol');
|
|
8749
|
+
|
|
8750
|
+
case 'bigint':
|
|
8751
|
+
return ctx.stylize(value.toString() + 'n', 'bigint');
|
|
8749
8752
|
}
|
|
8750
8753
|
// For some reason typeof null is "object", so special case here.
|
|
8751
8754
|
if (value === null) {
|
|
@@ -218,6 +218,9 @@ function formatPrimitive(ctx, value) {
|
|
|
218
218
|
|
|
219
219
|
case 'symbol':
|
|
220
220
|
return ctx.stylize(value.toString(), 'symbol');
|
|
221
|
+
|
|
222
|
+
case 'bigint':
|
|
223
|
+
return ctx.stylize(value.toString() + 'n', 'bigint');
|
|
221
224
|
}
|
|
222
225
|
// For some reason typeof null is "object", so special case here.
|
|
223
226
|
if (value === null) {
|