(tag: MetaDefinition, elem: HTMLMetaElement)
| 192 | } |
| 193 | |
| 194 | function containsAttributes(tag: MetaDefinition, elem: HTMLMetaElement): boolean { |
| 195 | return Object.keys(tag).every((key) => elem.getAttribute(getMetaKeyMap(key)) === tag[key]); |
| 196 | } |
| 197 | |
| 198 | function getMetaKeyMap(prop: string): string { |
| 199 | return META_KEYS_MAP[prop] || prop; |
no test coverage detected