Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/is-async-function/test/index.js
r0c6b92a r79a0317 9 9 var hasToStringTag = require('has-tostringtag/shams')(); 10 10 11 var forEach = function (arr, func) { 12 var i; 13 for (i = 0; i < arr.length; ++i) { 14 func(arr[i], i, arr); 15 } 16 }; 11 var forEach = require('for-each'); 17 12 18 13 test('returns false for non-functions', function (t) { … … 75 70 test('returns false for non-async function with faked @@toStringTag', { skip: !hasToStringTag || asyncFuncs.length === 0 }, function (t) { 76 71 var asyncFunc = asyncFuncs[0]; 72 /** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: unknown }} */ 77 73 var fakeAsyncFunction = { 78 74 toString: function () { return String(asyncFunc); },
Note:
See TracChangeset
for help on using the changeset viewer.