As the codebase grows, it's important to ensure that the core functionalities related to Web3.Storage uploads and QR code generation remain robust and error-free. This issue aims to introduce unit tests that ensure the integrity of these functionalities.
TODOs:
Write unit tests to ensure that the web3.storage is correctly uploading files and folders to IPFS.
Write tests to ensure that upon successful upload, a QR code is generated correctly.
The tests can be written using a popular testing framework like mocha.
Upon running npm run test, the results of these tests should be visible.
Key Files and their Responsibilities:
./src/scripts/web3Storage.js:
Handles the uploading of files and folders to Web3.Storage.
Generates decentralized QR codes for uploaded content.
./src/scripts/qrHandler.js:
Responsible for creating QR codes.
./src/scripts/utils.js:
Contains utility functions such as loaders, progress updaters, and QR code color handlers.
For development setup and contribution guide, check the main README.md.
As the codebase grows, it's important to ensure that the core functionalities related to Web3.Storage uploads and QR code generation remain robust and error-free. This issue aims to introduce unit tests that ensure the integrity of these functionalities.
TODOs:
web3.storage
is correctly uploading files and folders to IPFS.mocha
.Key Files and their Responsibilities:
web3Storage.js:
qrHandler.js:
utils.js: