File: fix_sandbox_syntax.patch

package info (click to toggle)
node-sshpk 1.16.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 984 kB
  • sloc: makefile: 44
file content (12 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Description: Fix sinon syntax w.r.t new version
--- a/test/dhe_compat.js
+++ b/test/dhe_compat.js
@@ -23,7 +23,7 @@
 var sandbox;
 
 test('set up sandbox', function (t) {
-	sandbox = sinon.sandbox.create();
+	sandbox = sinon.createSandbox();
 	sandbox.stub(crypto, 'createECDH');
 	t.ok(crypto.createECDH('prime256v1') === undefined);