Download src/js/util/mock.js from merve/git-101: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/util/mock.js
- Command line
-
hf download hf://spaces/merve/git-101/src/js/util/mock.js
-
curl -L -o mock.js https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/util/mock.js
176 Bytes
| exports.mock = function(Constructor) { | |
| var dummy = {}; | |
| var stub = function() {}; | |
| for (var key in Constructor.prototype) { | |
| dummy[key] = stub; | |
| } | |
| return dummy; | |
| }; | |