Skip to content

Commit cefbeff

Browse files
committed
fix: clean the code
1 parent cff212d commit cefbeff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cypress/component/DataViewTableSorting.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const sortData = (data: Repository[], sortBy: keyof Repository | undefined, dire
3939
)
4040
: data;
4141

42-
const TestableTable: React.FunctionComponent = () => {
42+
const TestTable: React.FunctionComponent = () => {
4343
const [ searchParams, setSearchParams ] = useSearchParams();
4444
const { sortBy, direction, onSort } = useDataViewSort({ searchParams, setSearchParams });
4545
const sortByIndex = React.useMemo(() => COLUMNS.findIndex(item => item.key === sortBy), [ sortBy ]);
@@ -78,7 +78,7 @@ describe('DataViewTable Sorting with Hook', () => {
7878
it('sorts by repository name in ascending and descending order', () => {
7979
cy.mount(
8080
<BrowserRouter>
81-
<TestableTable />
81+
<TestTable />
8282
</BrowserRouter>
8383
);
8484

@@ -94,7 +94,7 @@ describe('DataViewTable Sorting with Hook', () => {
9494
it('sorts by last commit date in ascending and descending order', () => {
9595
cy.mount(
9696
<BrowserRouter>
97-
<TestableTable />
97+
<TestTable />
9898
</BrowserRouter>
9999
);
100100

0 commit comments

Comments
 (0)