Duffer Derek

Current Path : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/@protobufjs/fetch/tests/
Upload File :
Current File : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/@protobufjs/fetch/tests/index.js

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();
});

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists