Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/../delayed-stream/../validator/../cheerio/../hasown/../strtok3/../mime/../cookie/../lodash.clonedeep/../css-what/../entities/../http/../hasown/../http/../wrappy/../@whiskeysockets/../process-warning/../strtok3/../@protobufjs/fetch/tests
الملفات الموجودة في هذا الـ Path:
.
..
index.js
مشاهدة ملف: 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();
});