Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular/cdk/bundles/cdk-platform.umd.js

    r59329aa re29cc2e  
    358358     * found in the LICENSE file at https://angular.io/license
    359359     */
    360     var testGlobals;
    361     // We check the Node-specific `global` first, because tools tend to add a fake
    362     // `window` in Node environments which won't actually receive global variables.
    363     if (typeof global !== 'undefined') {
    364         testGlobals = global;
    365     }
    366     else if (typeof window !== 'undefined') {
    367         testGlobals = window;
    368     }
    369     else {
    370         testGlobals = {};
    371     }
    372360    /** Gets whether the code is currently running in a test environment. */
    373361    function _isTestEnvironment() {
    374         return (typeof testGlobals.__karma__ !== 'undefined' && !!testGlobals.__karma__) ||
    375             (typeof testGlobals.jasmine !== 'undefined' && !!testGlobals.jasmine) ||
    376             (typeof testGlobals.jest !== 'undefined' && !!testGlobals.jest) ||
    377             (typeof testGlobals.Mocha !== 'undefined' && !!testGlobals.Mocha);
     362        // We can't use `declare const` because it causes conflicts inside Google with the real typings
     363        // for these symbols and we can't read them off the global object, because they don't appear to
     364        // be attached there for some runners like Jest.
     365        // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)
     366        return (
     367        // @ts-ignore
     368        (typeof __karma__ !== 'undefined' && !!__karma__) ||
     369            // @ts-ignore
     370            (typeof jasmine !== 'undefined' && !!jasmine) ||
     371            // @ts-ignore
     372            (typeof jest !== 'undefined' && !!jest) ||
     373            // @ts-ignore
     374            (typeof Mocha !== 'undefined' && !!Mocha));
    378375    }
    379376
Note: See TracChangeset for help on using the changeset viewer.