Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
lib
/
node_modules
/
@google
/
gemini-cli
/
node_modules
/
gopd
/
test
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
index.js
656 B
-rw-r--r--
1985-10-26 08:15:00
Edit
Del
Editing: index.js
(656 B)
Path: /usr/local/lib/node_modules/@google/gemini-cli/node_modules/gopd/test/index.js
Back
'use strict'; 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'); // @ts-expect-error TS can't figure out narrowing from `skip` 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(); });