Skip to content

Commit 48e60c1

Browse files
committed
Only run meta data tests if APIs are available.
1 parent 031f7ca commit 48e60c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,6 +2274,8 @@
22742274
})
22752275

22762276
describe('Metadata', function () {
2277+
if (!window.DataView || !loadImage.blobSlice) return
2278+
22772279
it('Parse EXIF tags', function (done) {
22782280
loadImage.parseMetaData(blobJPEG, function (data) {
22792281
expect(data.exif).to.be.ok

0 commit comments

Comments
 (0)