On Sun, Feb 26, 2017 at 7:49 PM, /#!/JoePea <[email protected]> wrote:
>
> Thanks T.J., that explains it well.

Glad that helped!

> I asked because I'm working with synchronous tests, so I'm wondering
> how to resolve ES6 Promises with fake network data synchronously,
> and fire all the handlers synchronously, all within the synchronous
> test function.
>
> Any recommendation on that?

Only way I know is to use an *asynchronous* test function instead.
Mocha, Jasmine, etc., all have handling for asynchronous tests.

-- T.J.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to