No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 394B

12345678910111213141516
  1. var tape = require("tape");
  2. var fetch = require("..");
  3. tape.test("fetch", function(test) {
  4. if (typeof Promise !== "undefined") {
  5. var promise = fetch("NOTFOUND");
  6. promise.catch(function() {});
  7. test.ok(promise instanceof Promise, "should return a promise if callback has been omitted");
  8. }
  9. // TODO - some way to test this properly?
  10. test.end();
  11. });