Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Commit 85c9408

Browse files
committed
chore: remove useless writeSync
1 parent 4584c74 commit 85c9408

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/filters/__tests__/convolution.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Matrix } from 'ml-matrix';
22

33
import { rawDirectConvolution } from '..';
4-
import { writeSync } from '../../save/write';
54
import { getClamp } from '../../utils/clamp';
65
import {
76
BorderType,
@@ -21,8 +20,7 @@ describe('convolution functions', () => {
2120
);
2221

2322
const expected = testUtils.load('opencv/testConv.png');
24-
writeSync(`${__dirname}/conv_expected.png`, expected);
25-
writeSync(`${__dirname}/conv_got.png`, convoluted);
23+
2624
expect(convoluted).toMatchImage(expected);
2725
});
2826

src/geometry/__tests__/resize.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ImageColorModel } from '../../Image';
2-
import { encodePng, writeSync } from '../../save';
2+
import { encodePng } from '../../save';
33

44
test.skip('compares result of resize with opencv', () => {
55
const img = testUtils.load('opencv/test.png');
@@ -9,8 +9,6 @@ test.skip('compares result of resize with opencv', () => {
99
yFactor: 10,
1010
});
1111

12-
writeSync('src/geometry/__tests__/resize.png', resized);
13-
1412
expect(resized).toMatchImage('opencv/testResizeBilinear.png');
1513
});
1614

src/geometry/__tests__/transform.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { writeSync } from '../../save';
2-
31
test('compare result of translation with opencv', () => {
42
const img = testUtils.load('opencv/test.png');
53
const translation = [
@@ -10,7 +8,6 @@ test('compare result of translation with opencv', () => {
108
width: 16,
119
height: 20,
1210
});
13-
writeSync('src/geometry/__tests__/transformed.png', transformed);
1411

1512
expect(transformed).toMatchImage('opencv/testTranslation.png');
1613
});
@@ -27,7 +24,6 @@ test.skip('fullImage = true', () => {
2724
height: 15,
2825
fullImage: true,
2926
});
30-
writeSync('src/geometry/__tests__/transformed-fullImage.png', transformed);
3127

3228
expect(transformed).toMatchImage('opencv/testTranslation.png');
3329
});

0 commit comments

Comments
 (0)