From cb058ec755de16546c46a9ae2e108d473ded82a4 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 9 Dec 2023 16:50:32 +0100 Subject: [PATCH] Changes due to upgrade of Magick.Native that now uses bigint. --- tests/magick-image/auto-threshold.spec.ts | 4 ++-- tests/magick-image/histogram.spec.ts | 4 ++-- tests/magick-image/linear-stretch.spec.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/magick-image/auto-threshold.spec.ts b/tests/magick-image/auto-threshold.spec.ts index cd99588e..5604ca51 100644 --- a/tests/magick-image/auto-threshold.spec.ts +++ b/tests/magick-image/auto-threshold.spec.ts @@ -12,8 +12,8 @@ describe('MagickImage#autoThreshold', () => { const histogram = image.histogram(); expect(histogram.size).toBe(2); - expect(histogram.get(MagickColors.Black.toString())).toBe(39359); - expect(histogram.get(MagickColors.White.toString())).toBe(267841); + expect(histogram.get(MagickColors.Black.toString())).toBe(39359n); + expect(histogram.get(MagickColors.White.toString())).toBe(267841n); }); }); }); diff --git a/tests/magick-image/histogram.spec.ts b/tests/magick-image/histogram.spec.ts index 71f8f504..d04ca991 100644 --- a/tests/magick-image/histogram.spec.ts +++ b/tests/magick-image/histogram.spec.ts @@ -11,8 +11,8 @@ describe('MagickImage#histogram', () => { expect(histogram).not.toBeNull(); expect(histogram.size).toBe(256); - expect(histogram.get(MagickColors.Red.toString())).toBe(2942); - expect(histogram.get(MagickColors.White.toString())).toBe(256244); + expect(histogram.get(MagickColors.Red.toString())).toBe(2942n); + expect(histogram.get(MagickColors.White.toString())).toBe(256244n); }); }); }); diff --git a/tests/magick-image/linear-stretch.spec.ts b/tests/magick-image/linear-stretch.spec.ts index 517ea679..1687973a 100644 --- a/tests/magick-image/linear-stretch.spec.ts +++ b/tests/magick-image/linear-stretch.spec.ts @@ -12,7 +12,7 @@ describe('MagickImage#linearStretch', () => { image.linearStretch(new Percentage(10), new Percentage(90)); const histogram = image.histogram(); - expect(histogram.get('#66d4ffff')).toBe(88); + expect(histogram.get('#66d4ffff')).toBe(88n); }); }); });