Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akhileshthite opened this issue Oct 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@akhileshthite
Copy link
Member

akhileshthite commented Oct 25, 2023

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:

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

@akhileshthite akhileshthite added the hactoberfest Hactoberfest 2024 label Oct 25, 2023
@akhileshthite akhileshthite changed the title tests: Implement Unit Tests for Web3.Storage Integration and QR Code Generation test: Implement Unit Tests for Web3.Storage Integration and QR Code Generation Oct 25, 2023
@akhileshthite akhileshthite removed the hactoberfest Hactoberfest 2024 label Nov 2, 2023
@akhileshthite akhileshthite added the enhancement New feature or request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant