mock-property
Version:
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
23 lines (19 loc) • 273 B
Plain Text
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.