(
tagName: string,
attrsOrTNode: TAttributes | TNode | null,
selector: CssSelector,
)
| 24 | |
| 25 | describe('css selector matching', () => { |
| 26 | function isMatching( |
| 27 | tagName: string, |
| 28 | attrsOrTNode: TAttributes | TNode | null, |
| 29 | selector: CssSelector, |
| 30 | ): boolean { |
| 31 | const tNode = |
| 32 | !attrsOrTNode || Array.isArray(attrsOrTNode) |
| 33 | ? createTNode(null!, null, TNodeType.Element, 0, tagName, attrsOrTNode as TAttributes) |
| 34 | : (attrsOrTNode as TNode); |
| 35 | return isNodeMatchingSelector(tNode, selector, true); |
| 36 | } |
| 37 | |
| 38 | describe('isNodeMatchingSimpleSelector', () => { |
| 39 | describe('element matching', () => { |
no test coverage detected
searching dependent graphs…