summaryrefslogtreecommitdiff
path: root/node_modules/has/test/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/has/test/index.js')
-rw-r--r--node_modules/has/test/index.js16
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();
-});