Test fixes
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-07 17:31:42 -03:00
parent 1299fc4dd3
commit 1dc6e8b4f9
2 changed files with 8 additions and 4 deletions

View File

@@ -127,14 +127,13 @@ describe('buildQrStylingOptions', () => {
).toEqual(g);
});
it('uses imageOptions and shape from recipe', () => {
it('uses imageOptions from recipe (shape always square)', () => {
const opts = buildQrStylingOptions({
imageOptions: {
hideBackgroundDots: false,
imageSize: 0.5,
margin: 5,
},
shape: 'circle',
});
expect(
(opts.imageOptions as { hideBackgroundDots: boolean })
@@ -144,7 +143,8 @@ describe('buildQrStylingOptions', () => {
0.5,
);
expect((opts.imageOptions as { margin: number }).margin).toBe(5);
expect(opts.shape).toBe('circle');
// shape is always 'square' (circle has rendering issues in qr-code-styling)
expect(opts.shape).toBe('square');
});
});