Spaces:
Runtime error
Runtime error
Download static/node_modules/gopd/test/index.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/gopd/test/index.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/gopd/test/index.js
-
curl -L -o index.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/gopd/test/index.js
590 Bytes
| ; | |
| var test = require('tape'); | |
| var gOPD = require('../'); | |
| test('gOPD', function (t) { | |
| t.test('supported', { skip: !gOPD }, function (st) { | |
| st.equal(typeof gOPD, 'function', 'is a function'); | |
| var obj = { x: 1 }; | |
| st.ok('x' in obj, 'property exists'); | |
| var desc = gOPD(obj, 'x'); | |
| st.deepEqual( | |
| desc, | |
| { | |
| configurable: true, | |
| enumerable: true, | |
| value: 1, | |
| writable: true | |
| }, | |
| 'descriptor is as expected' | |
| ); | |
| st.end(); | |
| }); | |
| t.test('not supported', { skip: gOPD }, function (st) { | |
| st.notOk(gOPD, 'is falsy'); | |
| st.end(); | |
| }); | |
| t.end(); | |
| }); | |