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

Resolve dependency to Colorthief library, that should make CanvasHandler and Interpolator testable. #138

Open
yu-smc opened this issue Feb 15, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yu-smc
Copy link
Collaborator

yu-smc commented Feb 15, 2024

As-Is

Currently Jest emits the error when testing CanvasHandler and Interpolator application (attached log image).
This error should have been emitted due to the dependency to Colorthief library.
スクリーンショット 2024-02-15 18 38 38

To-Be

Resolve dependency to Colorthief by using e.g. constructor injection to make CanvasHandler and Interpolator testable.

@yu-smc yu-smc added the enhancement New feature or request label Feb 15, 2024
@yu-smc yu-smc self-assigned this Feb 15, 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