Skip to content

Commit

Permalink
[Tests] use call-bind instead of function-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 20, 2024
1 parent fa1111d commit 3dbe456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -62,7 +62,6 @@
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"function-bind": "^1.1.1",
"functions-have-names": "^1.2.3",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions test/shimmed.js
Expand Up @@ -6,7 +6,7 @@ require('../auto');

var test = require('tape');
var defineProperties = require('define-properties');
var bind = require('function-bind');
var callBind = require('call-bind');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = require('functions-have-names')();

Expand All @@ -33,7 +33,7 @@ test('shimmed', function (t) {
st.end();
});

runTests(bind.call(Function.call, Array.prototype.includes), t);
runTests(callBind(Array.prototype.includes), t);

t.end();
});

0 comments on commit 3dbe456

Please sign in to comment.