()
| 1999 | |
| 2000 | |
| 2001 | def test_findIndex_found_twice(): |
| 2002 | items = [5, 12, 8, 130, 4] |
| 2003 | result = [0] |
| 2004 | pm.eval("(result, arr) => {result[0] = arr.findIndex((element) => element > 10)}")(result, items) |
| 2005 | assert result[0] == 1 |
| 2006 | |
| 2007 | |
| 2008 | def test_findIndex_not_found(): |
nothing calls this directly
no outgoing calls
no test coverage detected