From 4bb0256eae9fd3bae2fa391df93fb4de1b2ecef0 Mon Sep 17 00:00:00 2001 From: Dustin Davis Date: Tue, 6 Dec 2022 08:43:01 -0700 Subject: [PATCH] update unit test --- src/components/tables/c-table/c-table.test.ts | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/components/tables/c-table/c-table.test.ts b/src/components/tables/c-table/c-table.test.ts index 4cce01a9..f4cc9a8c 100644 --- a/src/components/tables/c-table/c-table.test.ts +++ b/src/components/tables/c-table/c-table.test.ts @@ -579,7 +579,7 @@ describe('c-table component', () => { expect(col.sortClass).toBe(component.styles.sortDesc); }); - it('will sort desc when col reverseSort', () => { + it('will sort asc still when col reverseSort', () => { const col: any = { _class: 'code', _status: 'warning', @@ -594,25 +594,7 @@ describe('c-table component', () => { component.setColSortClass(col); - expect(col.sortClass).toBe(component.styles.sortDesc); - }); - - it('will sort desc when table reverseSort', () => { - const col: any = { - _class: 'code', - _status: 'warning', - colClass: 't150', - colHeadName: 'name', - colHeadValue: 'Name', - sort: true, - }; - - component.reverseSort = true; - component.defaultSortCol = `${col.colHeadName}`; - - component.setColSortClass(col); - - expect(col.sortClass).toBe(component.styles.sortDesc); + expect(col.sortClass).toBe(component.styles.sortAsc); }); });