canjs / can-queues

A light weight JavaScript task queue
https://canjs.com/doc/can-queues.html
MIT License
2 stars 2 forks source link

Add a test to make sure runAsTask works in production #22

Open phillipskevin opened 6 years ago

phillipskevin commented 6 years ago

The current test for runAsTask (https://github.com/canjs/can-queues/blob/b16c3d4d50f05c47e7b9b2e5c07a204da444c0b2/can-queues-test.js#L458-L484) is using lastTask so cannot be run in production. We should add another test to make sure runAsTask works in production.