- Convert project to Javascript/Typescript
- Allow custom headers to be passed in (optional)
- Allow body to be optional
This commit is contained in:
Joel Male
2020-08-26 10:52:47 +10:00
committed by GitHub
parent 749e2dcbc6
commit 1ada95e04a
5740 changed files with 1689439 additions and 50 deletions
+10
View File
@@ -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();
});