to have EXIF data satisfying

  • <string|Buffer> to have (exif|EXIF) data satisfying <any>

Asserts that the given image has EXIF data that satisfies the given spec:

return expect('magic-pen-6-colours.jpg', 'to have EXIF data satisfying', {
    tags: {
        XResolution: 72
    }
});

You get a diff when the assertion fails:

return expect('magic-pen-6-colours.jpg', 'to have EXIF data satisfying', {
    tags: {
        XResolution: 96
    }
});
expected
to have EXIF data satisfying { tags: { XResolution96 } }
 
{
  
tags: {
  
ProcessingSoftware'gThumb 3.0.2',
  
Orientation1,
  
XResolution72
//
 
should equal 
96
  
YResolution72,
  
ResolutionUnit2,
  
ModifyDate'2014:07:13 16:21:04',
  
YCbCrPositioning1,
  
ColorSpace1,
  
ExifImageWidth380,
  
ExifImageHeight248
},
  
imageSize: { height248width380 },
  
thumbnailOffset300,
  
thumbnailLength2152,
  
thumbnailType6,
  
app1Offset24
}