(selector: string, container: HTMLElement)
| 27 | `; |
| 28 | |
| 29 | function selectSum(selector: string, container: HTMLElement): number { |
| 30 | return $$(selector, container).reduce((sum, element) => sum + looseParseInt(element), 0); |
| 31 | } |
| 32 | |
| 33 | const getPositiveReactions = mem((comment: HTMLElement): number | void => { |
| 34 | const count = selectSum(positiveReactionsSelector, comment); |
no test coverage detected