()
| 2006 | |
| 2007 | |
| 2008 | def test_findIndex_not_found(): |
| 2009 | items = [5, 12, 8, 130, 4] |
| 2010 | result = [0] |
| 2011 | pm.eval("(result, arr) => {result[0] = arr.findIndex((element) => element > 1000)}")(result, items) |
| 2012 | assert result[0] == -1 |
| 2013 | |
| 2014 | |
| 2015 | def test_findIndex_check_index(): |
nothing calls this directly
no outgoing calls
no test coverage detected