diff --git a/src/save/__tests__/encodeBmp.test.ts b/src/save/__tests__/encodeBmp.test.ts index 8a1f20ee9..9ec61d358 100644 --- a/src/save/__tests__/encodeBmp.test.ts +++ b/src/save/__tests__/encodeBmp.test.ts @@ -12,11 +12,9 @@ test('encode 5x5 mask', () => { ]); const mask = image.threshold({ threshold: 0.5 }); const result = testUtils.loadBuffer('formats/bmp/5x5.bmp'); - const buffer = encodeBmp(mask).buffer; + const buffer = encodeBmp(mask); - // TODO: change to `toStrictEqual`. - // eslint-disable-next-line vitest/prefer-strict-equal - expect(buffer).toEqual(result.buffer); + expect(buffer).toStrictEqual(result); }); test('encode 6x4 mask', () => { @@ -28,11 +26,9 @@ test('encode 6x4 mask', () => { ]); const mask = image.threshold({ threshold: 0.5 }); const result = testUtils.loadBuffer('formats/bmp/6x4.bmp'); - const buffer = encodeBmp(mask).buffer; + const buffer = encodeBmp(mask); - // TODO: change to `toStrictEqual`. - // eslint-disable-next-line vitest/prefer-strict-equal - expect(buffer).toEqual(result.buffer); + expect(buffer).toStrictEqual(result); }); test('encode 10x2 mask', () => { @@ -42,11 +38,9 @@ test('encode 10x2 mask', () => { ]); const mask = image.threshold({ threshold: 0.5 }); const result = testUtils.loadBuffer('formats/bmp/10x2.bmp'); - const buffer = encodeBmp(mask).buffer; + const buffer = encodeBmp(mask); - // TODO: change to `toStrictEqual`. - // eslint-disable-next-line vitest/prefer-strict-equal - expect(buffer).toEqual(result.buffer); + expect(buffer).toStrictEqual(result); }); test('should throw error', () => { diff --git a/test/img/formats/bmp/10x2.bmp b/test/img/formats/bmp/10x2.bmp index d13787825..daa23a382 100644 Binary files a/test/img/formats/bmp/10x2.bmp and b/test/img/formats/bmp/10x2.bmp differ diff --git a/test/img/formats/bmp/5x5.bmp b/test/img/formats/bmp/5x5.bmp index 148ec369b..b4a1fb577 100644 Binary files a/test/img/formats/bmp/5x5.bmp and b/test/img/formats/bmp/5x5.bmp differ diff --git a/test/img/formats/bmp/6x4.bmp b/test/img/formats/bmp/6x4.bmp index dd894e5f3..bedbcccc0 100644 Binary files a/test/img/formats/bmp/6x4.bmp and b/test/img/formats/bmp/6x4.bmp differ