1
0
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:
Dave Conway-Jones 2018-05-02 13:53:04 +01:00
parent ba158a7745
commit a03b060c9a
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"pushbullet": "~2.2.0", "pushbullet": "~2.2.0",
"should": "^13.2.1", "should": "^13.2.1",
"sinon": "^1.17.7", "sinon": "~5.0.3",
"supertest": "^3.0.0", "supertest": "^3.0.0",
"when": "^3.7.8" "when": "^3.7.8"
}, },

View File

@ -40,7 +40,7 @@ describe('exif node', function() {
GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED', GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED',
GPSDateStamp: '2014:06:10' } 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() { helper.load(exifNode, flow, function() {
var exifNode1 = helper.getNode("exifNode1"); var exifNode1 = helper.getNode("exifNode1");
@ -77,7 +77,7 @@ describe('exif node', function() {
GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED', GPSProcessingMethod: 'ASCII\u0000\u0000\u0000FUSED',
GPSDateStamp: '2014:06:10' } 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() { helper.load(exifNode, flow, function() {
var exifNode1 = helper.getNode("exifNode1"); var exifNode1 = helper.getNode("exifNode1");
@ -189,7 +189,7 @@ describe('exif node', function() {
GPSAltitude: 50, GPSAltitude: 50,
GPSTimeStamp: [ 7, 32, 2 ] } GPSTimeStamp: [ 7, 32, 2 ] }
}; };
var spy = sinon.stub(exif, 'ExifImage', var spy = sinon.stub(exif, 'ExifImage').callsFake(
function(arg1,arg2){ function(arg1,arg2){
arg2(null,gpsmsg); arg2(null,gpsmsg);
}); });
@ -229,7 +229,7 @@ describe('exif node', function() {
GPSAltitude: 50, GPSAltitude: 50,
GPSTimeStamp: [ 7, 32, 2 ] } GPSTimeStamp: [ 7, 32, 2 ] }
}; };
var spy = sinon.stub(exif, 'ExifImage', var spy = sinon.stub(exif, 'ExifImage').callsFake(
function(arg1,arg2){ function(arg1,arg2){
arg2(null,gpsmsg); arg2(null,gpsmsg);
}); });
@ -267,7 +267,7 @@ describe('exif node', function() {
GPSAltitude: 50, GPSAltitude: 50,
GPSTimeStamp: [ 7, 32, 2 ] } GPSTimeStamp: [ 7, 32, 2 ] }
}; };
var spy = sinon.stub(exif, 'ExifImage', var spy = sinon.stub(exif, 'ExifImage').callsFake(
function(arg1,arg2){ function(arg1,arg2){
arg2(null,gpsmsg); arg2(null,gpsmsg);
}); });