Spaces:
Paused
Paused
Download node_modules/@protobufjs/fetch/tests/index.js from Huzaifa1313/prof1: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/node_modules/%40protobufjs/fetch/tests/index.js
- Command line
-
hf download hf://spaces/Huzaifa1313/prof1/node_modules/@protobufjs/fetch/tests/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/node_modules/%40protobufjs/fetch/tests/index.js
394 Bytes
| 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(); | |
| }); | |