mixup tests for ninon v5

This commit is contained in:
Dave Conway-Jones
2018-05-02 13:53:04 +01:00
parent ba158a7745
commit a03b060c9a
2 changed files with 6 additions and 6 deletions

View File

@@ -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);
});