diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
| commit | f06956efd2dc4bf77244a9fcce2b883a00b925af (patch) | |
| tree | 0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/has/test | |
| parent | 8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff) | |
updated node modules
Diffstat (limited to 'node_modules/has/test')
| -rw-r--r-- | node_modules/has/test/index.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/node_modules/has/test/index.js b/node_modules/has/test/index.js deleted file mode 100644 index 876aad91..00000000 --- a/node_modules/has/test/index.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var test = require('tape'); -var has = require('../'); - -test('has', function (t) { - t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"'); - t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"'); - t['throws'](function () { - has(null, 'throws'); - }, TypeError, 'calling has on null throws TypeError'); - t['throws'](function () { - has(void 0, 'throws'); - }, TypeError, 'calling has on undefined throws TypeError'); - t.end(); -}); |
