From e00426111836b97e9397befb74ad09fc21bf1fbb Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 22 Sep 2023 07:24:26 +0200 Subject: [PATCH] Also read the created image. --- tests/coders/heic.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/coders/heic.spec.ts b/tests/coders/heic.spec.ts index 22c60273..359d94c9 100644 --- a/tests/coders/heic.spec.ts +++ b/tests/coders/heic.spec.ts @@ -1,6 +1,7 @@ // Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm. // Licensed under the Apache License, Version 2.0. +import { ImageMagick } from '../../src/image-magick'; import { MagickFormat } from '../../src/magick-format'; import { TestImages } from '../test-images'; @@ -9,6 +10,9 @@ describe('Coders#heic', () => { TestImages.Builtin.logo.use((image) => { image.write(MagickFormat.Avif, data => { expect(data.length).toBe(11386); + ImageMagick.read(data, image => { + expect(image.format).toBe(MagickFormat.Avif); + }); }); }); });