Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
lib
/
node_modules
/
@google
/
gemini-cli
/
node_modules
/
@protobufjs
/
fetch
/
tests
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
index.js
410 B
-rw-r--r--
2017-01-27 14:35:16
Edit
Del
Editing: index.js
(410 B)
Path: /usr/local/lib/node_modules/@google/gemini-cli/node_modules/@protobufjs/fetch/tests/index.js
Back
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(); });