p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
In test/unit/visual/visualTest.js if actual.length===0 added error handling to throw an Error indicating lack of screenshots or if the developer needs to wait for asynchronous tasks to complete before the test ends.
Resolves #6772
Changes:
In
test/unit/visual/visualTest.js
ifactual.length===0
added error handling to throw an Error indicating lack of screenshots or if the developer needs to wait for asynchronous tasks to complete before the test ends.Screenshots of the change:
PR Checklist
npm run lint
passes