Spaces:
Runtime error
Runtime error
Download node_modules/object-inspect/test/deep.js from fffiloni/controlnet-animation-doodle: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/fffiloni/controlnet-animation-doodle/resolve/main/node_modules/object-inspect/test/deep.js
- Command line
-
hf download hf://spaces/fffiloni/controlnet-animation-doodle/node_modules/object-inspect/test/deep.js
-
curl -L -o deep.js https://huggingface.co/spaces/fffiloni/controlnet-animation-doodle/resolve/main/node_modules/object-inspect/test/deep.js
400 Bytes
| var inspect = require('../'); | |
| var test = require('tape'); | |
| test('deep', function (t) { | |
| t.plan(4); | |
| var obj = [[[[[[500]]]]]]; | |
| t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]'); | |
| t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]'); | |
| t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]'); | |
| t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]'); | |
| }); | |