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/fesm2015/platform.js

    r59329aa re29cc2e  
    330330 * found in the LICENSE file at https://angular.io/license
    331331 */
    332 let testGlobals;
    333 // We check the Node-specific `global` first, because tools tend to add a fake
    334 // `window` in Node environments which won't actually receive global variables.
    335 if (typeof global !== 'undefined') {
    336     testGlobals = global;
    337 }
    338 else if (typeof window !== 'undefined') {
    339     testGlobals = window;
    340 }
    341 else {
    342     testGlobals = {};
    343 }
    344332/** Gets whether the code is currently running in a test environment. */
    345333function _isTestEnvironment() {
    346     return (typeof testGlobals.__karma__ !== 'undefined' && !!testGlobals.__karma__) ||
    347         (typeof testGlobals.jasmine !== 'undefined' && !!testGlobals.jasmine) ||
    348         (typeof testGlobals.jest !== 'undefined' && !!testGlobals.jest) ||
    349         (typeof testGlobals.Mocha !== 'undefined' && !!testGlobals.Mocha);
     334    // We can't use `declare const` because it causes conflicts inside Google with the real typings
     335    // for these symbols and we can't read them off the global object, because they don't appear to
     336    // be attached there for some runners like Jest.
     337    // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)
     338    return (
     339    // @ts-ignore
     340    (typeof __karma__ !== 'undefined' && !!__karma__) ||
     341        // @ts-ignore
     342        (typeof jasmine !== 'undefined' && !!jasmine) ||
     343        // @ts-ignore
     344        (typeof jest !== 'undefined' && !!jest) ||
     345        // @ts-ignore
     346        (typeof Mocha !== 'undefined' && !!Mocha));
    350347}
    351348
Note: See TracChangeset for help on using the changeset viewer.