grid-view.component.spec.ts 1.42 KB
Newer Older
Deng, Qian's avatar
Deng, Qian committed
1
/*
2
 * Copyright Project Harbor Authors
Deng, Qian's avatar
Deng, Qian committed
3 4 5 6 7 8 9 10 11
 *
 * This product is licensed to you under the Apache License, Version 2.0 (the "License").
 * You may not use this product except in compliance with the License.
 *
 * This product may include a number of subcomponents with separate copyright notices
 * and license terms. Your use of these subcomponents is subject to the terms and
 * conditions of the subcomponent's license, as noted in the LICENSE file.
 */

12
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
Deng, Qian's avatar
Deng, Qian committed
13
import { GridViewComponent } from './grid-view.component';
14 15 16
import { IServiceConfig, SERVICE_CONFIG } from "../../../../lib/entities/service.config";
import { SharedModule } from "../../../../lib/utils/shared/shared.module";

Deng, Qian's avatar
Deng, Qian committed
17 18 19 20 21 22 23 24 25


describe('GridViewComponent', () => {
  let component: GridViewComponent;
  let fixture: ComponentFixture<GridViewComponent>;

  let config: IServiceConfig = {
  };

26
  beforeEach(waitForAsync(() => {
Deng, Qian's avatar
Deng, Qian committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    TestBed.configureTestingModule({
      imports: [
        SharedModule,
      ],
      declarations: [
        GridViewComponent,
      ],
      providers: [{
        provide: SERVICE_CONFIG, useValue: config }]
      }).compileComponents();
    }));

  beforeEach(() => {
    fixture = TestBed.createComponent(GridViewComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});