From 2478f0f8ec6004ce318d58d59143612adf51f5f0 Mon Sep 17 00:00:00 2001 From: Benjamin Charity Date: Fri, 15 Mar 2019 13:02:02 -0400 Subject: [PATCH] Revert "chore(Table): has test for warning" This was an accidental commit and will be included in a legitimate release. This reverts commit 41673d649213e6aa1303cfad8465becbb4e7f546. --- terminus-ui/table/src/table.component.spec.ts | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/terminus-ui/table/src/table.component.spec.ts b/terminus-ui/table/src/table.component.spec.ts index 90c10753a..a574d056f 100644 --- a/terminus-ui/table/src/table.component.spec.ts +++ b/terminus-ui/table/src/table.component.spec.ts @@ -235,40 +235,6 @@ class TableColumnAlignmentTableApp { } -@Component({ - template: ` - - - Column A - {{ row.a }} - - - - - - `, -}) -class TableColumnInvalidAlignmentTableApp { - underlyingDataSource = new FakeDataSource(); - dataSource = new TsTableDataSource(); - columnsToRender = ['column_a']; - - @ViewChild(TsTableComponent) table!: TsTableComponent; - - 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 @@ -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; - - fixture = createComponent(TableColumnInvalidAlignmentTableApp); - fixture.detectChanges(); - - expect(window.console.warn).toHaveBeenCalled(); - }); }); });