We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321d7db commit c29b03dCopy full SHA for c29b03d
1 file changed
src/qr-decode/detect/homography/homography.test.ts
@@ -35,7 +35,7 @@ describe('Edge Projection', () => {
35
expect(result.verticalScore).toBeGreaterThan(0);
36
});
37
38
- it('should find the correct 4th corner', () => {
+ it('should find the correct 4th corner', async () => {
39
const p1 = { x: 20, y: 20 };
40
const p2 = { x: 80, y: 20 };
41
const p3 = { x: 20, y: 80 };
@@ -45,7 +45,7 @@ describe('Edge Projection', () => {
45
const expectedP4 = { x: 80, y: 80 };
46
const moduleSize = 2;
47
48
- const foundP4 = findFourthCorner(
+ const { bestP4: foundP4 } = await findFourthCorner(
49
imageData,
50
width,
51
height,
0 commit comments