(element: any, directions: {[key: string]: boolean} = {})
| 1000 | } |
| 1001 | |
| 1002 | function expectStickyBorderClass(element: any, directions: {[key: string]: boolean} = {}) { |
| 1003 | ['top', 'bottom', 'left', 'right'].forEach(d => { |
| 1004 | const stickyClass = `cdk-table-sticky-border-elem-${d}`; |
| 1005 | |
| 1006 | if (directions[d]) { |
| 1007 | expect(element.classList).toContain(stickyClass); |
| 1008 | } else { |
| 1009 | expect(element.classList).not.toContain(stickyClass); |
| 1010 | } |
| 1011 | }); |
| 1012 | } |
| 1013 | |
| 1014 | describe('on "display: flex" table style', () => { |
| 1015 | let dataRows: HTMLElement[]; |
no outgoing calls
no test coverage detected