-
Hey everyone, in tutorial video Patrick completed 50% of testing SimpleStorage so i wanted to finish the testing and I couldn't quite get the correct logic for addPerson function from SimpleStorage. Can anyone help ? it("Should add new person in the empty array", async () => {
const transactionResponse = await simpleStorage.addPerson("David", "55")
await transactionResponse.wait(1)
const peopleArray = await simpleStorage.people([0])
const newPerson = ["David", "55"]
assert.equal(peopleArray, newPerson)
}) I am getting this error : |
Beta Was this translation helpful? Give feedback.
Answered by
pacelliv
Oct 29, 2022
Replies: 1 comment 4 replies
-
Comment the assert, print |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jeefxM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comment the assert, print
peopleArray
and rerun the test to see what's returning. I might be wrong but seems to be empty.