Преглед изворни кода

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