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

write a test for initCanvas #176

Open
ericblade opened this issue Apr 26, 2020 · 0 comments
Open

write a test for initCanvas #176

ericblade opened this issue Apr 26, 2020 · 0 comments

Comments

@ericblade
Copy link
Owner

ericblade commented Apr 26, 2020

... test for initCanvas needs to test that it correctly sets Quagga.canvas.dom and Quagga.canvas.ctx, and that those each have an image and an overlay property.

Per #151 once implemented, if you don't have a DOM drawingBuffer then Quagga.canvas.dom.overlay and Quagga.canvas.ctx.overlay should be nullish, there should always be a Quagga.canvas.dom.image and Quagga.canvas.ctx.image when in browser. in node, they should all be nullish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant