Skip to content

Commit

Permalink
Fix sinon deprecation warning (badges#1737)
Browse files Browse the repository at this point in the history
`sandbox.create()` is deprecated. Use default sandbox at `sinon.sandbox` or create new sandboxes with `sinon.createSandbox()`
  • Loading branch information
paulmelnikow authored Jun 17, 2018
1 parent 4308b60 commit 028d8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/text-measurer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function registerTests(fontPath, skip) {
beforeEach(function () {
// This often times out: https://circleci.com/gh/badges/shields/2786
this.timeout(5000);
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
pdfKitWidthOf = sandbox.spy(PDFKitTextMeasurer.prototype, 'widthOf');
pdfKitMeasurer = new PDFKitTextMeasurer(fontPath);
});
Expand Down

0 comments on commit 028d8d7

Please sign in to comment.