Skip to content

Commit

Permalink
Added extra checks to the unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 25, 2023
1 parent 6003188 commit 67d70ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/drawables/drawable-line.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ describe('DrawableLine', () => {
new DrawableLine(10, 10, 40, 50)
]);

expect(image).toHavePixelWithColor(0, 0, MagickColors.White);
expect(image).toHavePixelWithColor(9, 9, MagickColors.White);
expect(image).toHavePixelWithColor(10, 9, MagickColors.White);
expect(image).toHavePixelWithColor(9, 10, MagickColors.White);
expect(image).toHavePixelWithColor(10, 10, fillColor);
expect(image).toHavePixelWithColor(22, 26, fillColor);
expect(image).toHavePixelWithColor(40, 50, fillColor);
Expand Down

0 comments on commit 67d70ab

Please sign in to comment.