Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/object-inspect/test/fakes.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/object-inspect/test/fakes.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject@refs/pr/32/masteringModule/node_modules/object-inspect/test/fakes.js
-
curl -L -o fakes.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/object-inspect/test/fakes.js
716 Bytes
| ; | |
| var inspect = require('../'); | |
| var test = require('tape'); | |
| var hasSymbols = require('has-symbols/shams')(); | |
| var forEach = require('for-each'); | |
| test('fakes', { skip: !hasSymbols || typeof Symbol.toStringTag === 'undefined' }, function (t) { | |
| forEach([ | |
| 'Array', | |
| 'Boolean', | |
| 'Date', | |
| 'Error', | |
| 'Number', | |
| 'RegExp', | |
| 'String' | |
| ], function (expected) { | |
| var faker = {}; | |
| faker[Symbol.toStringTag] = expected; | |
| t.equal( | |
| inspect(faker), | |
| '{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }', | |
| 'faker masquerading as ' + expected + ' is not shown as one' | |
| ); | |
| }); | |
| t.end(); | |
| }); | |