We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a2a00 commit 6622650Copy full SHA for 6622650
test/parallel/test-blob.js
@@ -3,6 +3,7 @@
3
const common = require('../common');
4
const assert = require('assert');
5
const { Blob } = require('buffer');
6
+const { inspect } = require('util');
7
8
{
9
const b = new Blob();
@@ -190,3 +191,10 @@ assert.throws(() => new Blob({}), {
190
191
assert.strictEqual(text, 'test42');
192
}));
193
}
194
+
195
+{
196
+ const b = new Blob();
197
+ assert.strictEqual(inspect(b, { depth: null }),
198
+ 'Blob { size: 0, type: \'\' }');
199
+ assert.strictEqual(inspect(b, { depth: -1 }), '[Blob]');
200
+}
0 commit comments