()
| 23 | function reject() { return Promise.reject(new Error("NOPE")); } |
| 24 | |
| 25 | async function runTests() { |
| 26 | await test(async function a() { |
| 27 | throw new Error("FAIL"); |
| 28 | }, |
| 29 | ["a", "test", "runTests"]); |
| 30 | |
| 31 | await test(async function a2() { |
| 32 | await 1; |
| 33 | throw new Error("FAIL"); |
| 34 | }, ["a2"]); |
| 35 | |
| 36 | await test(async function a3() { |
| 37 | await 1; |
| 38 | try { await thrower(); } catch (e) { throw new Error("FAIL"); } |
| 39 | }, ["a3"]); |
| 40 | |
| 41 | await test(async function a4() { |
| 42 | await 1; |
| 43 | try { await reject(); } catch (e) { throw new Error("FAIL"); } |
| 44 | }, ["a4"]); |
| 45 | |
| 46 | await test({ async b() { |
| 47 | throw new Error("FAIL"); |
| 48 | }}.b, |
| 49 | ["b", "test", "runTests"]); |
| 50 | |
| 51 | await test({ async b2() { |
| 52 | await 1; |
| 53 | throw new Error("FAIL"); |
| 54 | }}.b2, ["b2"]); |
| 55 | |
| 56 | await test({ async b3() { |
| 57 | await 1; |
| 58 | try { await thrower(); } catch (e) { throw new Error("FAIL"); } |
| 59 | } }.b3, ["b3"]); |
| 60 | |
| 61 | await test({ async b4() { |
| 62 | await 1; |
| 63 | try { await reject(); } catch (e) { throw new Error("FAIL"); } |
| 64 | } }.b4, ["b4"]); |
| 65 | |
| 66 | await test((new class { async c() { |
| 67 | throw new Error("FAIL"); |
| 68 | } }).c, |
| 69 | ["c", "test", "runTests"]); |
| 70 | |
| 71 | await test((new class { async c2() { |
| 72 | await 1; |
| 73 | throw new Error("FAIL"); |
| 74 | } }).c2, ["c2"]); |
| 75 | |
| 76 | await test((new class { async c3() { |
| 77 | await 1; |
| 78 | try { await thrower(); } catch (e) { throw new Error("FAIL"); } |
| 79 | } }).c3, ["c3"]); |
| 80 | |
| 81 | await test((new class { async c4() { |
| 82 | await 1; |
no test coverage detected
searching dependent graphs…