guest271314 (2019-07-02T08:01:36.000Z)
guest271314 at gmail.com (2019-07-02T08:02:44.084Z)
> 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.