()
| 2124 | |
| 2125 | |
| 2126 | def test_flat(): |
| 2127 | items = [0, 1, 2, [3, 4]] |
| 2128 | result = [0] |
| 2129 | pm.eval("(result, arr) => {result[0] = arr.flat()}")(result, items) |
| 2130 | assert items == [0, 1, 2, [3, 4]] |
| 2131 | assert result[0] == [0, 1, 2, 3, 4] |
| 2132 | |
| 2133 | |
| 2134 | def test_flat_with_js_array(): |
nothing calls this directly
no outgoing calls
no test coverage detected