(items: Array<T>)
| 95 | * Create expected result set as a Map |
| 96 | */ |
| 97 | export function createExpectedResults<T>(items: Array<T>): Map<string, T> { |
| 98 | const map = new Map<string, T>() |
| 99 | for (const item of items) { |
| 100 | const key = JSON.stringify(item) |
| 101 | map.set(key, item) |
| 102 | } |
| 103 | return map |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Test helper that tracks messages and materializes results |