tgvashworth / fetch-engine

A smart request-making library
24 stars 6 forks source link

Switch to tape #51

Closed tgvashworth closed 8 years ago

tgvashworth commented 8 years ago

I'm loathe to do it because ava is nice, but browsers. This unblocks #16.

tgvashworth commented 8 years ago

If anybody wants to pick this up, I've done a partial conversation in f5a5e5c.

ahume commented 8 years ago

I'll do Headers.

tgvashworth commented 8 years ago

We also need to be careful to wrap tests that return a Promise in something that will fail the test if the Promise rejects, as we could be missing failures that ava would have caught.

ahume commented 8 years ago

What would this look like?

tgvashworth commented 8 years ago

I suppose:

test('Blah blah', wrap(t => { ... }));

Promise.resolve the return value and catch errors?

tgvashworth commented 8 years ago

This is now complete.