Skip to content

Commit

Permalink
Revert "chore(Table): has test for warning"
Browse files Browse the repository at this point in the history
This was an accidental commit and will be included in a legitimate
release.

This reverts commit 41673d6.
  • Loading branch information
benjamincharity committed Mar 15, 2019
1 parent 41673d6 commit 2478f0f
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions terminus-ui/table/src/table.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,40 +235,6 @@ class TableColumnAlignmentTableApp {
}


@Component({
template: `
<ts-table [dataSource]="dataSource" tsSort>
<ng-container tsColumnDef="column_a" alignment="top">
<ts-header-cell *tsHeaderCellDef>Column A</ts-header-cell>
<ts-cell *tsCellDef="let row">{{ row.a }}</ts-cell>
</ng-container>
<ts-header-row *tsHeaderRowDef="columnsToRender"></ts-header-row>
<ts-row *tsRowDef="let row; columns: columnsToRender"></ts-row>
</ts-table>
`,
})
class TableColumnInvalidAlignmentTableApp {
underlyingDataSource = new FakeDataSource();
dataSource = new TsTableDataSource<TestData>();
columnsToRender = ['column_a'];

@ViewChild(TsTableComponent) table!: TsTableComponent<TestData>;

constructor() {
this.underlyingDataSource.data = [];

// Add a row of data
this.underlyingDataSource.addData();

this.underlyingDataSource.connect().subscribe((data) => {
this.dataSource.data = data;
});
}

}




// Utilities copied from CDKTable's spec
Expand Down Expand Up @@ -483,18 +449,7 @@ describe(`TsTableComponent`, function() {

expect(style).toBeUndefined();
});
});

describe(`invalid alignment argument`, () => {
test(`should throw warning`, () => {
window.console.warn = jest.fn();
let fixture: ComponentFixture<TableColumnInvalidAlignmentTableApp>;

fixture = createComponent(TableColumnInvalidAlignmentTableApp);
fixture.detectChanges();

expect(window.console.warn).toHaveBeenCalled();
});
});

});
Expand Down

0 comments on commit 2478f0f

Please sign in to comment.