Skip to content

Commit ca16ae2

Browse files
author
Beau Shinkle
committed
Convert make's test block to a for-loop
1 parent efe04b2 commit ca16ae2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/leafTest.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ describe("Leaf", () => {
4848
},
4949
]
5050

51-
testData.forEach(async (test) => {
51+
for (let i = 0; i < testData.length; i++) {
52+
const test = testData[i]
5253
const leaf = await leafInstance.make(
5354
test.address,
5455
test.creationBlock,
5556
test.id,
5657
)
5758
expect(leaf).to.equal(test.expectation)
58-
})
59+
}
5960
})
6061
})
6162

0 commit comments

Comments
 (0)