.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / has / test / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/has/test/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/has/test/index.js
new file mode 100644 (file)
index 0000000..43d480b
--- /dev/null
@@ -0,0 +1,10 @@
+'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.end();
+});