Skip to content

Commit c29b03d

Browse files
committed
fix: Update homography tests to handle async findFourthCorner
1 parent 321d7db commit c29b03d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/qr-decode/detect/homography/homography.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Edge Projection', () => {
3535
expect(result.verticalScore).toBeGreaterThan(0);
3636
});
3737

38-
it('should find the correct 4th corner', () => {
38+
it('should find the correct 4th corner', async () => {
3939
const p1 = { x: 20, y: 20 };
4040
const p2 = { x: 80, y: 20 };
4141
const p3 = { x: 20, y: 80 };
@@ -45,7 +45,7 @@ describe('Edge Projection', () => {
4545
const expectedP4 = { x: 80, y: 80 };
4646
const moduleSize = 2;
4747

48-
const foundP4 = findFourthCorner(
48+
const { bestP4: foundP4 } = await findFourthCorner(
4949
imageData,
5050
width,
5151
height,

0 commit comments

Comments
 (0)