Use jest.fn instead of string.

This commit is contained in:
Carlos Mondragon 2018-10-26 10:12:27 -07:00
parent 2787284033
commit bb227d5c3a

View File

@ -7,7 +7,7 @@ const model = {
buttonIcon: 'ga css class',
buttonLink: 'http://url/to/destination',
buttonTitle: 'Click me',
onClick: 'handler',
onClick: jest.fn(),
proTip: 'This is a tip',
proTipLink: 'http://url/to/tip/destination',
proTipLinkTitle: 'Learn more',