Explorar o código

Use jest.fn instead of string.

Carlos Mondragon %!s(int64=7) %!d(string=hai) anos
pai
achega
bb227d5c3a

+ 1 - 1
public/app/core/components/EmptyListCTA/EmptyListCTA.test.tsx

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