(values: ReadonlyArray<T>)
| 1 | import { expectJSON } from './expectJSON.ts'; |
| 2 | |
| 3 | export function expectMatchingValues<T>(values: ReadonlyArray<T>): T { |
| 4 | const [firstValue, ...remainingValues] = values; |
| 5 | for (const value of remainingValues) { |
| 6 | expectJSON(value).toDeepEqual(firstValue); |
| 7 | } |
| 8 | return firstValue; |
| 9 | } |
no test coverage detected