(actual, rest, expect)
| 82 | |
| 83 | fields.forEach((field) => { |
| 84 | function checkLoop(actual, rest, expect) { |
| 85 | actual = actual[rest.shift()]; |
| 86 | if (rest.length === 0 && actual !== undefined) { |
| 87 | assert.strictEqual(actual, expect); |
| 88 | } else { |
| 89 | assert(actual); |
| 90 | checkLoop(actual, rest, expect); |
| 91 | } |
| 92 | } |
| 93 | let actual, expect; |
| 94 | if (Array.isArray(field)) { |
| 95 | [actual, expect] = field; |
no test coverage detected
searching dependent graphs…