Download node_modules/fast-check/lib/arbitrary/context.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/context.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/context.js
-
curl -L -o context.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/context.js
633 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.context = context; | |
| const symbols_1 = require("../check/symbols"); | |
| const constant_1 = require("./constant"); | |
| class ContextImplem { | |
| constructor() { | |
| this.receivedLogs = []; | |
| } | |
| log(data) { | |
| this.receivedLogs.push(data); | |
| } | |
| size() { | |
| return this.receivedLogs.length; | |
| } | |
| toString() { | |
| return JSON.stringify({ logs: this.receivedLogs }); | |
| } | |
| [symbols_1.cloneMethod]() { | |
| return new ContextImplem(); | |
| } | |
| } | |
| function context() { | |
| return (0, constant_1.constant)(new ContextImplem()); | |
| } | |