moq.ts
moq.ts copied to clipboard
feature: implement isExtensible trap
const mock = new Mock<() => void>()
.object();
Object.preventExtensions(mock);
// now the following is not possible
mock["property"] = 1;
delete mock.property1;