Content-Length: 236779 | pFad | http://github.com/roygdavis/SamExif/commit/1c0c26d661d0215f88f31de5a9a2b3092b23e193

19 add test · roygdavis/SamExif@1c0c26d · GitHub
Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Oct 20, 2018
1 parent 1d4b5a3 commit 1c0c26d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Binary file added test/Arbitro.tiff
Binary file not shown.
16 changes: 16 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ describe('.parseSync()', () => {
const data = exif.parseSync('./test/IMG_0001.JPG');
expect(data.GPSInfo).to.be.an('object');
});
it('TIFF', () => {
const data = exif.parseSync('./test/Arbitro.tiff');
expect(data).to.be.eql({
ImageWidth: 174,
ImageHeight: 38,
BitsPerSample: 8,
Compression: 5,
PhotometricInterpretation: 2,
StripOffsets: 8,
Orientation: 1,
SamplesPerPixel: 4,
RowsPerStrip: 38,
StripByteCounts: 6391,
PlanarConfiguration: 1
});
});
});
describe('.fromBuffer()', () => {
it('file {undefined}', () => {
Expand Down

0 comments on commit 1c0c26d

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/roygdavis/SamExif/commit/1c0c26d661d0215f88f31de5a9a2b3092b23e193

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy