mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
mixup tests for ninon v5
This commit is contained in:
parent
ba158a7745
commit
a03b060c9a
@ -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"
|
||||
},
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user