import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { Component, Output, ViewChild, EventEmitter } from '@angular/core'; import {CdkTableModule} from '@angular/cdk'; import { SamDataTableModule,SamSortDirective } from './'; import { ExampleDataSource,ExampleDatabase } from './data-source.sample.spec'; @Component({ selector: 'test-cmp', template: ` Agency {{row.agency}} CFDA # {{row.cfdaNumber}} Title {{row.title}} Status {{row.status}} Cost {{row.cost}} Last Updated {{row.lastUpdatedDate}} ` }) class TestComponent { exampleDatabase = new ExampleDatabase(); dataSource: ExampleDataSource | null; @ViewChild(SamSortDirective) sort: SamSortDirective; ngOnInit(){ this.dataSource = new ExampleDataSource(this.exampleDatabase, this.sort); } } describe('The Sam Data Table Tests', () => { let component: TestComponent, fixture: ComponentFixture; beforeEach(() => { TestBed.configureTestingModule({ imports: [ CdkTableModule, SamDataTableModule ], declarations: [ TestComponent ], }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should compile`', function () { expect(true).toBe(true); }); });