D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
washeet.softurecs.com
/
node_modules
/
@protobufjs
/
fetch
/
tests
/
Filename :
index.js
back
Copy
var tape = require("tape"); var fetch = require(".."); tape.test("fetch", function(test) { if (typeof Promise !== "undefined") { var promise = fetch("NOTFOUND"); promise.catch(function() {}); test.ok(promise instanceof Promise, "should return a promise if callback has been omitted"); } // TODO - some way to test this properly? test.end(); });