GSI - Employe Self Service Mobile
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.

16 lines
394 B

2 months ago
  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. });