assert-request icon indicating copy to clipboard operation
assert-request copied to clipboard

More (working) examples

Open joh-klein opened this issue 7 years ago • 2 comments

I really like the idea of this. But I can't get it to work (Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.). I would really appreciate a whole lot more of examples and may be links to projects that are already using it.

joh-klein avatar Oct 29 '17 09:10 joh-klein

There are some working examples in the tests: https://github.com/PlasmaPower/assert-request/blob/master/test/integration.js

But yeah, we do need more examples.

PlasmaPower avatar Oct 30 '17 01:10 PlasmaPower

Oh, and with the error you're getting, make sure your tests don't take the "done" argument. If they take an argument, then the test framework will ignore the returned promise.

PlasmaPower avatar Oct 31 '17 01:10 PlasmaPower