SUSE/stratos

View on GitHub
src/frontend/packages/core/test-framework/spec-helper.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { APP_BASE_HREF } from '@angular/common';
import { TestBed } from '@angular/core/testing';

/**
 * The ngx Charts lobrary needs APP_BASE_HREF - so we will provide it through
 * a global beforeEach so we don't have to add it to all the necessary
 * spec files.
 */
beforeEach(() => {
  TestBed.configureTestingModule({
    providers: [{ provide: APP_BASE_HREF, useValue: '/' }]
  });
});

/**
 * Bump up the Jasmine timeout from 5 seconds
 */
beforeAll(() => {
  jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
});