> Is there a way to mock imported (`computeGraph`) function from within the test?
If gather the requirement correctly you can substitute utilizing `console.assert()` shipped with the browser for a third-party library. > About video try reloading the page and doing `video.play()`, it will reject, as the event is not trusted. Not sure what the code or test is for playing `<video>` in a module or what lead to the `Promise` rejection described when the `document` is reloaded? Have run this code https://plnkr.co/edit/5bvp9xv0ciMYfVzG?p=preview (which plays `<video>` in a JavaScript module) several times sequentially using `autoplay` without a `Promise` rejection occurring. On Tue, Jul 2, 2019 at 7:46 AM Adam Eisenreich <a...@seznam.cz> wrote: > About video try reloading the page and doing `video.play()`, it will > reject, as the event is not trusted. > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss