Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Feb 8, 2024
1 parent 29c5cda commit 9dc1ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/connected-component/to-geometry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { TestImages } from '@test/test-images';
describe('ConnectedComponent#toGeometry', () => {
it('converts the component to a geometry', () => {
TestImages.connectedComponentsPng.use((image) => {
image.clone((clone) => {
clone.blur(0, 10);
clone.threshold(new Percentage(50));
image.clone(other => {
other.blur(0, 10);
other.threshold(new Percentage(50));

const connectedComponents = [...clone.connectedComponents(4)].sort((a, b) => a.x - b.x);
const connectedComponents = [...other.connectedComponents(4)].sort((a, b) => a.x - b.x);

const geometry = connectedComponents[1].toGeometry();

Expand Down

0 comments on commit 9dc1ead

Please sign in to comment.