--- /dev/null
+var tape = require("tape");\r
+\r
+var fetch = require("..");\r
+\r
+tape.test("fetch", function(test) {\r
+\r
+ if (typeof Promise !== "undefined") {\r
+ var promise = fetch("NOTFOUND");\r
+ promise.catch(function() {});\r
+ test.ok(promise instanceof Promise, "should return a promise if callback has been omitted");\r
+ }\r
+\r
+ // TODO - some way to test this properly?\r
+ \r
+ test.end();\r
+});\r