Lesson-14 basicNft testing questions
#2760
-
could anyone help me to understand How this line is written?
BTW The whole code is :
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@TimeKeyRoll Let me simplify it; Basically Now here, we are using We are testing whether both are equal or not. |
Beta Was this translation helpful? Give feedback.
-
What exactly is the doubt here? "could anyone help me to understand How this line is written?" Is it the way the line is written or comprehending how it works? |
Beta Was this translation helpful? Give feedback.
@TimeKeyRoll Let me simplify it;
Basically
asserts
are the statements that check for equality, less than, or greater than of two given things in its parameters and return either true or false based on the result. And this comes from the dependencyconst { assert, expect } = require("chai");
.Now here, we are using
assert.equal
means we want to check the equality of two things, that are, 1.tokenURI
and 2.await basicNft.TOKEN_URI()
.We are testing whether both are equal or not.