diff --git a/test/issues/issues-test.js b/test/issues/issues-test.js index 64db5eb8f..8d675af29 100644 --- a/test/issues/issues-test.js +++ b/test/issues/issues-test.js @@ -874,17 +874,5 @@ describe("issues", function () { mock.expects("aMethod").once(); }); }); - - it("should not throw if the unconfigurable object descriptor to be used for a Fake is on the prototype", function () { - const instance = - createInstanceFromClassWithReadOnlyPropertyDescriptor(); - - // per #2491 this throws "TypeError: Cannot assign to read only property 'aMethod' of object '#'" - // that makes sense for descriptors taken from the object, but not its prototype, as we are free to change - // the latter when setting it - refute.exception(() => { - this.sandbox.replace(instance, "aMethod", sinon.fake()); - }); - }); }); });