()
| 1854 | |
| 1855 | |
| 1856 | def test_find_found_once(): |
| 1857 | items = [5, 12, 8, 130, 44] |
| 1858 | result = [0] |
| 1859 | pm.eval("(result, arr) => {result[0] = arr.find((element) => element > 100)}")(result, items) |
| 1860 | assert items == [5, 12, 8, 130, 44] |
| 1861 | assert result[0] == 130 |
| 1862 | |
| 1863 | |
| 1864 | def test_find_found_twice(): |
nothing calls this directly
no outgoing calls
no test coverage detected