summaryrefslogtreecommitdiff
path: root/skills/brainstorming/scripts/node_modules/object-inspect/test/has.js
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-03-09 21:36:37 -0700
committerJesse Vincent <jesse@fsck.com>2026-03-09 21:36:37 -0700
commit7446c842d8754a9ce54dd82a9258443d08c490c3 (patch)
treee68400d83088f125ec6a7ed1a030bc749c90061f /skills/brainstorming/scripts/node_modules/object-inspect/test/has.js
parent5e2a89e985eb3c3f5ea2bccc2fa6f19ac5d26797 (diff)
Bundle brainstorm server dependencies instead of requiring npm install
Vendor node_modules into the repo so the brainstorm server works immediately on fresh plugin installs without needing npm at runtime.
Diffstat (limited to 'skills/brainstorming/scripts/node_modules/object-inspect/test/has.js')
-rw-r--r--skills/brainstorming/scripts/node_modules/object-inspect/test/has.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/skills/brainstorming/scripts/node_modules/object-inspect/test/has.js b/skills/brainstorming/scripts/node_modules/object-inspect/test/has.js
new file mode 100644
index 0000000..01800de
--- /dev/null
+++ b/skills/brainstorming/scripts/node_modules/object-inspect/test/has.js
@@ -0,0 +1,15 @@
+'use strict';
+
+var inspect = require('../');
+var test = require('tape');
+var mockProperty = require('mock-property');
+
+test('when Object#hasOwnProperty is deleted', function (t) {
+ t.plan(1);
+ var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
+
+ t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty"
+ t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true }));
+
+ t.equal(inspect(arr), '[ 1, , 3 ]');
+});