to have EXIF data satisfying
- <string|Buffer> to have (exif|EXIF) data satisfying <any>
Asserts that the given Buffer instance contains EXIF data that satisfies the given spec:
return expect(require('fs').readFileSync('magic-pen-6-colours.jpg'), 'to have EXIF data satisfying', {
tags: {
XResolution: 72
}
});
You get a diff when the assertion fails:
return expect(require('fs').readFileSync('magic-pen-6-colours.jpg'), 'to have EXIF data satisfying', {
tags: {
XResolution: 96
}
});
expected
to have EXIF data satisfying { tags: { XResolution: 96 } }
{
tags: {
ProcessingSoftware: 'gThumb 3.0.2',
Orientation: 1,
XResolution: 72,
//
should equal
96
YResolution: 72,
ResolutionUnit: 2,
ModifyDate: '2014:07:13 16:21:04',
YCbCrPositioning: 1,
ColorSpace: 1,
ExifImageWidth: 380,
ExifImageHeight: 248
},
imageSize: { height: 248, width: 380 },
thumbnailOffset: 300,
thumbnailLength: 2152,
thumbnailType: 6,
app1Offset: 24
}