MCPcopy Index your code
hub / github.com/angular/components / expectStickyBorderClass

Function expectStickyBorderClass

src/cdk/table/table.spec.ts:961–971  ·  view source on GitHub ↗
(element: any, directions: {[key: string]: boolean} = {})

Source from the content-addressed store, hash-verified

959 }
960
961 function expectStickyBorderClass(element: any, directions: {[key: string]: boolean} = {}) {
962 ['top', 'bottom', 'left', 'right'].forEach(d => {
963 const stickyClass = `cdk-table-sticky-border-elem-${d}`;
964
965 if (directions[d]) {
966 expect(element.classList).toContain(stickyClass);
967 } else {
968 expect(element.classList).not.toContain(stickyClass);
969 }
970 });
971 }
972
973 describe('on "display: flex" table style', () => {
974 let dataRows: HTMLElement[];

Callers 2

expectNoStickyStylesFunction · 0.85
table.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected