From a03b060c9a102dae9bb6306cdbd2c4b85540cacd Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 2 May 2018 13:53:04 +0100 Subject: [PATCH] mixup tests for ninon v5 --- package.json | 2 +- test/utility/exif/94-exif_spec.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 82887e15..d42cb7d1 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "proxyquire": "^2.0.1", "pushbullet": "~2.2.0", "should": "^13.2.1", - "sinon": "^1.17.7", + "sinon": "~5.0.3", "supertest": "^3.0.0", "when": "^3.7.8" }, diff --git a/test/utility/exif/94-exif_spec.js b/test/utility/exif/94-exif_spec.js index bdf33e7a..6a4d01cb 100644 --- a/test/utility/exif/94-exif_spec.js +++ b/test/utility/exif/94-exif_spec.js @@ -40,7 +40,7 @@ describe('exif node', function() { GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED', GPSDateStamp: '2014:06:10' } }; - var spy = sinon.stub(exif, 'ExifImage', function(arg1,arg2) { arg2(null,gpsmsg); }); + var spy = sinon.stub(exif, 'ExifImage').callsFake(function(arg1,arg2) { arg2(null,gpsmsg); }); helper.load(exifNode, flow, function() { var exifNode1 = helper.getNode("exifNode1"); @@ -77,7 +77,7 @@ describe('exif node', function() { GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED', GPSDateStamp: '2014:06:10' } }; - var spy = sinon.stub(exif, 'ExifImage', function(arg1,arg2) { arg2(null,gpsmsg); }); + var spy = sinon.stub(exif, 'ExifImage').callsFake(function(arg1,arg2) { arg2(null,gpsmsg); }); helper.load(exifNode, flow, function() { var exifNode1 = helper.getNode("exifNode1"); @@ -189,7 +189,7 @@ describe('exif node', function() { GPSAltitude: 50, GPSTimeStamp: [ 7, 32, 2 ] } }; - var spy = sinon.stub(exif, 'ExifImage', + var spy = sinon.stub(exif, 'ExifImage').callsFake( function(arg1,arg2){ arg2(null,gpsmsg); }); @@ -229,7 +229,7 @@ describe('exif node', function() { GPSAltitude: 50, GPSTimeStamp: [ 7, 32, 2 ] } }; - var spy = sinon.stub(exif, 'ExifImage', + var spy = sinon.stub(exif, 'ExifImage').callsFake( function(arg1,arg2){ arg2(null,gpsmsg); }); @@ -267,7 +267,7 @@ describe('exif node', function() { GPSAltitude: 50, GPSTimeStamp: [ 7, 32, 2 ] } }; - var spy = sinon.stub(exif, 'ExifImage', + var spy = sinon.stub(exif, 'ExifImage').callsFake( function(arg1,arg2){ arg2(null,gpsmsg); });