mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 11:03:50 +00:00
Added margin option to QR code component
This commit is contained in:
@@ -57,6 +57,12 @@ describe('qrCodes', () => {
|
||||
{ useSizeInPath: true, svgIsSupported: true, marginIsSupported: true },
|
||||
'shlink.io/qr-code/456?format=png&margin=10',
|
||||
],
|
||||
[
|
||||
'shlink.io',
|
||||
{ size: 456, format: 'png' as QrCodeFormat, margin: 0 },
|
||||
{ useSizeInPath: true, svgIsSupported: true, marginIsSupported: true },
|
||||
'shlink.io/qr-code/456?format=png',
|
||||
],
|
||||
])('builds expected URL based in params', (shortUrl, options, capabilities, expectedUrl) => {
|
||||
expect(buildQrCodeUrl(shortUrl, options, capabilities)).toEqual(expectedUrl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user