()
| 2214 | |
| 2215 | |
| 2216 | def test_flatMap_check_index(): |
| 2217 | items = [4, 2, 6, 7] |
| 2218 | result = [''] |
| 2219 | pm.eval("(result, arr) => {arr.flatMap((x, index) => result[0] += index)}")(result, items) |
| 2220 | assert items == [4, 2, 6, 7] |
| 2221 | assert result[0] == '0123' |
| 2222 | |
| 2223 | |
| 2224 | def test_flatMap_check_array(): |
nothing calls this directly
no outgoing calls
no test coverage detected