Skip to content

Commit

Permalink
Fix #441: update spelling of prop descriptor prop (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Nov 21, 2022
1 parent b0e7dc5 commit c6ddc8b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/fake-timers-test.js
Expand Up @@ -3881,9 +3881,14 @@ describe("FakeTimers", function () {
return ["foo"];
}

Object.defineProperty(Performance.prototype, "getEntries", {
writeable: true,
});
for (const propName of [
"getEntries",
"getEntriesByName",
"getEntriesByType",
])
Object.defineProperty(Performance.prototype, propName, {
writable: true,
});

Performance.prototype.getEntries = noop;
Performance.prototype.getEntriesByName = noop;
Expand Down

0 comments on commit c6ddc8b

Please sign in to comment.