Просмотр исходного кода

Use jest.fn instead of string.

Carlos Mondragon 7 лет назад
Родитель
Сommit
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',