From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- school/node_modules/has/test/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 school/node_modules/has/test/index.js (limited to 'school/node_modules/has/test/index.js') diff --git a/school/node_modules/has/test/index.js b/school/node_modules/has/test/index.js new file mode 100644 index 0000000..43d480b --- /dev/null +++ b/school/node_modules/has/test/index.js @@ -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(); +}); -- cgit