MCPcopy Create free account
hub / github.com/Starcounter-Jack/JSON-Patch / objFactory

Function objFactory

test/spec/duplexSpec.mjs:836–840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

834 describe('should generate empty patch, when', function() {
835 it('when new property is set to `undefined`', function() {
836 const objFactory = function() {
837 return {
838 foo: 'bar'
839 };
840 };
841
842 const objChanger = function(obj) {
843 obj.baz = undefined;

Callers 2

getPatchesUsingGenerateFunction · 0.85
getPatchesUsingCompareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected