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 71e24db commit be1c8d7Copy full SHA for be1c8d7
test/typed.js
@@ -0,0 +1,21 @@
1
+var inspect = require('../');
2
+var test = require('tape');
3
+
4
+test('prototype is Object.prototype', function (t) {
5
+ t.plan(1);
6
+ var obj = {};
7
+ t.equal(inspect(obj), '{}');
8
+});
9
10
+test('prototype is null', function (t) {
11
12
+ var obj = Object.create(null);
13
14
15
16
+test('prototype from new', function (t) {
17
18
+ function Foo() {}
19
+ var obj = new Foo();
20
+ t.equal(inspect(obj), 'Foo {}');
21
0 commit comments