Skip to content

Commit d316901

Browse files
committed
Merge branch 'develop'
2 parents 867a444 + 850b094 commit d316901

File tree

4 files changed

+473
-418
lines changed

4 files changed

+473
-418
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10-
node-version: [17.x]
10+
node-version: [17.x, 18.x, 19.x]
1111
steps:
1212
- name: Check out repository code
1313
uses: actions/checkout@v3

__tests__/SignaturePad.test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ describe('Component', () => {
120120
expect(signaturePad.toDataURL()).toContain('data:image/png;base64');
121121
});
122122

123+
it('returns a signature as an SVG string', () => {
124+
const instance = React.createRef<SignaturePad>();
125+
126+
render(<SignaturePad ref={instance} redrawOnResize />);
127+
128+
const signaturePad = instance.current as SignaturePad;
129+
130+
expect(signaturePad.toSVG()).toContain('<svg');
131+
});
132+
123133
it('returns a signature as an array of data points', () => {
124134
const instance = React.createRef<SignaturePad>();
125135

0 commit comments

Comments
 (0)