Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

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  
    11'use strict';
    22
     3// @ts-ignore
    34require('core-js');
    45
  • imaps-frontend/node_modules/is-generator-function/test/index.js

    r0c6b92a r79a0317  
    44
    55var test = require('tape');
    6 var isGeneratorFunction = require('../index');
     6
    77var generatorFuncs = require('make-generator-function')();
    88var hasToStringTag = require('has-tostringtag/shams')();
     9var forEach = require('for-each');
    910
    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 };
     11var isGeneratorFunction = require('../index');
    1612
    1713test('returns false for non-functions', function (t) {
     
    6359test('returns false for non-generator function with faked @@toStringTag', { skip: !hasToStringTag || generatorFuncs.length === 0 }, function (t) {
    6460        var generatorFunc = generatorFuncs[0];
     61        /** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: unknown; }} */
    6562        var fakeGenFunction = {
    6663                toString: function () { return String(generatorFunc); },
  • imaps-frontend/node_modules/is-generator-function/test/uglified.js

    r0c6b92a r79a0317  
    11'use strict';
    22
     3// @ts-ignore
    34require('uglify-register/api').register({
    45        exclude: [/\/node_modules\//, /\/test\//],
Note: See TracChangeset for help on using the changeset viewer.