()
| 1991 | |
| 1992 | |
| 1993 | def test_findIndex_found_once(): |
| 1994 | items = [5, 12, 8, 130, 44] |
| 1995 | result = [0] |
| 1996 | pm.eval("(result, arr) => {result[0] = arr.findIndex((element) => element > 100)}")(result, items) |
| 1997 | assert items == [5, 12, 8, 130, 44] |
| 1998 | assert result[0] == 3 |
| 1999 | |
| 2000 | |
| 2001 | def test_findIndex_found_twice(): |
nothing calls this directly
no outgoing calls
no test coverage detected