p2plabsxyz / dscan

A decentralized storage and file-sharing tool that uploads content to IPFS and generates decentralized QR codes.
https://chromewebstore.google.com/detail/dscan-own-your-identity-o/idpfgkgogjjgklefnkjdpghkifbjenap
MIT License
36 stars 26 forks source link

test: Implement Unit Tests for Web3.Storage Integration and QR Code Generation #49

Open akhileshthite opened 10 months ago

akhileshthite commented 10 months ago

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:

Key Files and their Responsibilities:

  1. ./src/scripts/web3Storage.js:
    • Handles the uploading of files and folders to Web3.Storage.
    • Generates decentralized QR codes for uploaded content.
  2. ./src/scripts/qrHandler.js:
    • Responsible for creating QR codes.
  3. ./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.