@@ -12,21 +12,21 @@ test('mounts canvas and instance properly', () => {
12
12
expect ( instance . isEmpty ( ) ) . toBe ( true )
13
13
} )
14
14
15
- describe ( 'props are set and updated correctly ' , ( ) => {
16
- test ( 'default props should match ', ( ) => {
15
+ describe ( 'setting and updating props ' , ( ) => {
16
+ it ( 'should set default props ', ( ) => {
17
17
const instance = mount ( < SignatureCanvas /> ) . instance ( )
18
18
expect ( instance . props ) . toStrictEqual ( SignatureCanvas . defaultProps )
19
19
} )
20
20
21
- test ( 'mounted initial props and options should match ', ( ) => {
21
+ it ( 'should set initial mount props and SigPad options ', ( ) => {
22
22
const instance = mount ( < SignatureCanvas { ...propsF . all } /> ) . instance ( )
23
23
const sigPad = instance . getSignaturePad ( )
24
24
25
25
expect ( instance . props ) . toMatchObject ( propsF . all )
26
26
expect ( sigPad ) . toMatchObject ( propsF . sigPadOptions )
27
27
} )
28
28
29
- test ( 'updated props and options should match ', ( ) => {
29
+ it ( 'should update props and SigPad options ', ( ) => {
30
30
const wrapper = mount ( < SignatureCanvas /> )
31
31
const instance = wrapper . instance ( )
32
32
const sigPad = instance . getSignaturePad ( )
@@ -117,7 +117,7 @@ describe('SigCanvas wrapper methods return equivalent to SigPad', () => {
117
117
} )
118
118
119
119
// comes after props and wrapper methods as it uses both
120
- describe ( 'get methods return correct canvases ' , ( ) => {
120
+ describe ( 'get methods' , ( ) => {
121
121
const instance = mount (
122
122
< SignatureCanvas canvasProps = { dotF . canvasProps } />
123
123
) . instance ( )
0 commit comments