Skip to content

Commit

Permalink
Prefer @sinonjs/commons@2
Browse files Browse the repository at this point in the history
That makes ES2017 support explicit
  • Loading branch information
mroderick committed Nov 7, 2022
1 parent 62ad45c commit cde2370
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 8 deletions.
152 changes: 145 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,7 +49,7 @@
},
"main": "./src/fake-timers-src.js",
"dependencies": {
"@sinonjs/commons": "^1.7.0"
"@sinonjs/commons": "2.0.0"
},
"husky": {
"hooks": {
Expand Down
4 changes: 4 additions & 0 deletions test/fake-timers-test.js
Expand Up @@ -3881,6 +3881,10 @@ describe("FakeTimers", function () {
return ["foo"];
}

Object.defineProperty(Performance.prototype, "getEntries", {
writeable: true,
});

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

0 comments on commit cde2370

Please sign in to comment.