()
| 23 | |
| 24 | |
| 25 | def test_missing_func(): |
| 26 | items = [1, 2, 3] |
| 27 | try: |
| 28 | pm.eval("(arr) => {arr.after()}")(items) |
| 29 | assert False |
| 30 | except Exception as e: |
| 31 | assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>" |
| 32 | assert str(e).__contains__('TypeError: arr.after is not a function') |
| 33 | |
| 34 | # reverse |
| 35 |
nothing calls this directly
no outgoing calls
no test coverage detected