فهرست منبع

Use jest.fn instead of string.

Carlos Mondragon 7 سال پیش
والد
کامیت
bb227d5c3a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      public/app/core/components/EmptyListCTA/EmptyListCTA.test.tsx

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

@@ -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',