(actual, expected)
| 123 | } |
| 124 | } |
| 125 | function assertBlock(actual, expected) { |
| 126 | // Check transactions |
| 127 | for (let i = 0; i < expected.transactions.length; i++) { |
| 128 | const expectedTx = expected.transactions[i]; |
| 129 | if (typeof (expectedTx) === "string") { |
| 130 | assert_1.default.equal(actual.transactions[i], expectedTx, `block.transactions[${i}]`); |
| 131 | } |
| 132 | else { |
| 133 | throw new Error("@TODO"); |
| 134 | } |
| 135 | } |
| 136 | // Remove the transactions and test keys |
| 137 | expected = Object.assign({}, expected, { transactions: undefined, test: undefined }); |
| 138 | // Check remaining keys |
| 139 | assertObj("block", actual, expected); |
| 140 | } |
| 141 | function assertTransaction(actual, expected) { |
| 142 | // @TODO: Accesslist |
| 143 | // Check signature |
no test coverage detected