Fix tests where the spy was reset by Jasmine before the async code was finished
Fix tests where the spy was reset by Jasmine before the async code was finished

cburgmer/rasterizeHTML.js,cburgmer/rasterizeHTML.js