Add Unit Tests for Modal Component and NFT Submission Flow #269
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
Type of Change
Description
This PR adds and enhances unit tests for the
Modal
component and themintNFT
function. The primary goal is to validate the correct functionality of lesson submission via the modal, including calling themintNFT
function to create an NFT. The added mocks and test setup ensure that data interactions and verifications are aligned with the lesson submission flow and NFT generation.Files included in this PR:
mintNFT
function.mintNFT
trigger function.Testing Performed
The following tests were conducted:
submitLessonInFirestore
Call in Modal: Tests lesson submission and calls themintNFT
function post-submission, ensuring lesson data is passed correctly.lessons_submissions
and execution of themintNFT
trigger.Related Issues
Checklist