How to Unit Test the SortingDataAccessor of DataSource MatTableDataSource

Viewed 171

Am not able to Cover the following lines of code?

 this.dataSource.sortingDataAccessor = (item, property) => {
                    switch (property) {
                        case 'status': return item.status;
                        case 'description': return item.description;
                        default: return item[property];
                    }
                };
0 Answers
Related