MCPcopy Create free account
hub / github.com/angular/components / expectStickyBorderClass

Function expectStickyBorderClass

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

Source from the content-addressed store, hash-verified

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[];

Callers 2

expectNoStickyStylesFunction · 0.85
table.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected