Skip to content

Commit eead928

Browse files
authored
Merge pull request #70 from LGLabGreg/fix-tsc
test: fix missing gradientId
2 parents a535c0a + 4555720 commit eead928

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

.changeset/modern-llamas-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lglab/react-qr-code': patch
3+
---
4+
5+
Fix tests missing gradientId

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
npx --no-install lint-staged
2+
pnpm build:lib
23
pnpm test

packages/react-qr-code/src/components/data-modules.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('DataModules', () => {
2525
const defaultProps = {
2626
modules: mockModules,
2727
margin: 2,
28+
gradientId: 'mock-gradient-id',
2829
}
2930

3031
it('calls the correct shape function based on style prop', () => {

packages/react-qr-code/src/components/finder-patter-inner.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('DataModules', () => {
1717
const defaultProps = {
1818
modules: mockModules,
1919
margin: 2,
20+
gradientId: 'mock-gradient-id',
2021
}
2122

2223
it.each([['rounded-sm'], ['rounded'], ['rounded-lg'], ['circle'], ['square']])(

packages/react-qr-code/src/components/finder-patter-outer.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('DataModules', () => {
1616
const defaultProps = {
1717
modules: mockModules,
1818
margin: 2,
19+
gradientId: 'mock-gradient-id',
1920
}
2021

2122
it.each([['rounded-sm', 'rounded', 'rounded-lg']])(

0 commit comments

Comments
 (0)