beforeEach(() => {
fixture = TestBed.createComponent(GridComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
What is above could become:
beforeEach(() => {
fixture = TestBed.createComponent(GridComponent);
component = fixture.componentInstance;
component.contents = {
columns: [
{ name: "DistributorId" },
{ name: "FirstLastName" },
{ name: "LevelType" },
{ name: "Status" },
{ name: "CityState" }
],
data:[]
};
fixture.detectChanges();
});
No comments:
Post a Comment