arwes / arwes

Futuristic Sci-Fi UI Web Framework.

Home Page:https://arwes.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test useBleeps conversion from generics bleeps to component bleeps

romelperez opened this issue · comments

The sounds useBleeps hook does not have proper test coverage on the conversion from "generic bleeps" to "component bleeps" use cases.

The BleepsProvider component provides a "generic bleep" collection using a React context. The useBleeps() hook, takes the generic bleeps and convert them into a "bleep" collection.

The generic bleeps have to provide a "component identifier" to know from where the bleeps are being manipulated. The component bleeps already have the component identifier built-in so they don't need it. The idea is to allow the component to use bleeps with a simple React hook without providing an identifier each time they are used.

  • Test the useBleep hook for conversion from generic bleeps to component bleeps use cases.

Since the bleeps API was entirely refactored, this task is no longer relevant.