Skip to content

Lesson-14 basicNft testing questions #2760

Discussion options

You must be logged in to vote

@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 dependency const { 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.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@alymurtazamemon
Comment options

@TimeKeyRoll
Comment options

Answer selected by TimeKeyRoll
Comment options

You must be logged in to vote
4 replies
@TimeKeyRoll
Comment options

@krakxn
Comment options

@TimeKeyRoll
Comment options

@krakxn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants