MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / get

Function get

packages/@stdlib/testing/src/smart-mock.ts:33–44  ·  view source on GitHub ↗
(target, propertyKey, receiver)

Source from the content-addressed store, hash-verified

31 return Reflect.deleteProperty(target, propertyKey);
32 },
33 get(target, propertyKey, receiver) {
34 if (!(propertyKey in target)) {
35 if (propertyKey === 'then') {
36 (target as any)[propertyKey] = (onfulfilled: any) =>
37 Promise.resolve().then(onfulfilled);
38 } else {
39 (target as any)[propertyKey] = createSmartMock();
40 }
41 }
42
43 return Reflect.get(target, propertyKey, receiver);
44 },
45 getOwnPropertyDescriptor(target, propertyKey) {
46 return Reflect.getOwnPropertyDescriptor(target, propertyKey);
47 },

Callers

nothing calls this directly

Calls 3

createSmartMockFunction · 0.85
thenMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected