From a3a80bc23eaab7ec07f2d45ae0656d1cbb902b24 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Wed, 27 Feb 2019 18:03:15 -0500 Subject: [PATCH] Fix prop errors in unit tests. --- __tests__/components/Lookup.test.jsx | 6 ++-- .../components/NotificationList.test.jsx | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/__tests__/components/Lookup.test.jsx b/__tests__/components/Lookup.test.jsx index 9402dcbbcc..7ac2c9575b 100644 --- a/__tests__/components/Lookup.test.jsx +++ b/__tests__/components/Lookup.test.jsx @@ -198,10 +198,11 @@ describe('', () => { { }} - data={mockData} + value={mockData} selected={[]} columns={mockColumns} sortedColumnKey="name" + getItems={() => { }} /> ).find('Lookup'); @@ -217,10 +218,11 @@ describe('', () => { { }} - data={mockData} + value={mockData} selected={[]} columns={mockColumns} sortedColumnKey="name" + getItems={() => { }} /> ).find('Lookup'); diff --git a/__tests__/components/NotificationList.test.jsx b/__tests__/components/NotificationList.test.jsx index 0b53f3c7e9..c08de77350 100644 --- a/__tests__/components/NotificationList.test.jsx +++ b/__tests__/components/NotificationList.test.jsx @@ -12,6 +12,11 @@ describe('', () => { @@ -25,6 +30,11 @@ describe('', () => { @@ -39,6 +49,11 @@ describe('', () => { @@ -54,6 +69,10 @@ describe('', () => { @@ -75,6 +94,11 @@ describe('', () => { @@ -90,7 +114,11 @@ describe('', () => { @@ -141,6 +169,8 @@ describe('', () => { getNotifications={getNotificationsFn} getSuccess={getSuccessFn} getError={getErrorFn} + postError={jest.fn()} + postSuccess={jest.fn()} />