@@ -12,11 +12,9 @@ test('encode 5x5 mask', () => {
12
12
] ) ;
13
13
const mask = image . threshold ( { threshold : 0.5 } ) ;
14
14
const result = testUtils . loadBuffer ( 'formats/bmp/5x5.bmp' ) ;
15
- const buffer = encodeBmp ( mask ) . buffer ;
15
+ const buffer = encodeBmp ( mask ) ;
16
16
17
- // TODO: change to `toStrictEqual`.
18
- // eslint-disable-next-line vitest/prefer-strict-equal
19
- expect ( buffer ) . toEqual ( result . buffer ) ;
17
+ expect ( buffer ) . toStrictEqual ( result ) ;
20
18
} ) ;
21
19
22
20
test ( 'encode 6x4 mask' , ( ) => {
@@ -28,11 +26,9 @@ test('encode 6x4 mask', () => {
28
26
] ) ;
29
27
const mask = image . threshold ( { threshold : 0.5 } ) ;
30
28
const result = testUtils . loadBuffer ( 'formats/bmp/6x4.bmp' ) ;
31
- const buffer = encodeBmp ( mask ) . buffer ;
29
+ const buffer = encodeBmp ( mask ) ;
32
30
33
- // TODO: change to `toStrictEqual`.
34
- // eslint-disable-next-line vitest/prefer-strict-equal
35
- expect ( buffer ) . toEqual ( result . buffer ) ;
31
+ expect ( buffer ) . toStrictEqual ( result ) ;
36
32
} ) ;
37
33
38
34
test ( 'encode 10x2 mask' , ( ) => {
@@ -42,11 +38,9 @@ test('encode 10x2 mask', () => {
42
38
] ) ;
43
39
const mask = image . threshold ( { threshold : 0.5 } ) ;
44
40
const result = testUtils . loadBuffer ( 'formats/bmp/10x2.bmp' ) ;
45
- const buffer = encodeBmp ( mask ) . buffer ;
41
+ const buffer = encodeBmp ( mask ) ;
46
42
47
- // TODO: change to `toStrictEqual`.
48
- // eslint-disable-next-line vitest/prefer-strict-equal
49
- expect ( buffer ) . toEqual ( result . buffer ) ;
43
+ expect ( buffer ) . toStrictEqual ( result ) ;
50
44
} ) ;
51
45
52
46
test ( 'should throw error' , ( ) => {
0 commit comments