( assertionA: Record<string, string>, assertionB: Record<string, string> )
| 76 | } |
| 77 | |
| 78 | export function doAttributesDiffer( |
| 79 | assertionA: Record<string, string>, |
| 80 | assertionB: Record<string, string> |
| 81 | ): boolean { |
| 82 | const keysA = Object.keys(assertionA); |
| 83 | return ( |
| 84 | keysA.length !== Object.keys(assertionB).length || |
| 85 | keysA.some(key => assertionA[key] !== assertionB[key]) |
| 86 | ); |
| 87 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…