Skip to content

Commit

Permalink
Bump sinon from 18.0.1 to 19.0.2
Browse files Browse the repository at this point in the history
Bumps [sinon](https://github.com/sinonjs/sinon) from 18.0.1 to 19.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](sinonjs/sinon@v18.0.1...v19.0.2)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and rowanmanning committed Oct 7, 2024
1 parent 950b145 commit 1e85dfa
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 48 deletions.
98 changes: 52 additions & 46 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"mockery": "^2.1.0",
"nock": "^13.5.5",
"quibble": "^0.9.2",
"sinon": "^18.0.1",
"sinon": "^19.0.2",
"sinon-chai": "^3.7.0",
"supertest": "^7.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion test/unit/http.spec.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ describe('Http metrics', function () {
let metrics;

beforeEach(function () {
clock = sinon.useFakeTimers();
clock = sinon.useFakeTimers({
toFake: ['setTimeout', 'clearTimeout', 'setImmediate', 'clearImmediate','setInterval', 'clearInterval', 'Date']
});
metrics = new Metrics();
metrics.init({ flushEvery: 100 });
app = express();
Expand Down

0 comments on commit 1e85dfa

Please sign in to comment.