- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/is-generator-function/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/is-generator-function/test/corejs.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 // @ts-ignore 3 4 require('core-js'); 4 5 -
imaps-frontend/node_modules/is-generator-function/test/index.js
r0c6b92a r79a0317 4 4 5 5 var test = require('tape'); 6 var isGeneratorFunction = require('../index'); 6 7 7 var generatorFuncs = require('make-generator-function')(); 8 8 var hasToStringTag = require('has-tostringtag/shams')(); 9 var forEach = require('for-each'); 9 10 10 var forEach = function (arr, func) { 11 var i; 12 for (i = 0; i < arr.length; ++i) { 13 func(arr[i], i, arr); 14 } 15 }; 11 var isGeneratorFunction = require('../index'); 16 12 17 13 test('returns false for non-functions', function (t) { … … 63 59 test('returns false for non-generator function with faked @@toStringTag', { skip: !hasToStringTag || generatorFuncs.length === 0 }, function (t) { 64 60 var generatorFunc = generatorFuncs[0]; 61 /** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: unknown; }} */ 65 62 var fakeGenFunction = { 66 63 toString: function () { return String(generatorFunc); }, -
imaps-frontend/node_modules/is-generator-function/test/uglified.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 // @ts-ignore 3 4 require('uglify-register/api').register({ 4 5 exclude: [/\/node_modules\//, /\/test\//],
Note:
See TracChangeset
for help on using the changeset viewer.