From 803ea322d676191f305219628e62d143ea30ce1b Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Thu, 2 Jul 2020 09:33:00 -0700 Subject: [PATCH] update path to useThrottle in tests --- awx/ui_next/src/components/JobList/useWsJobs.test.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/JobList/useWsJobs.test.jsx b/awx/ui_next/src/components/JobList/useWsJobs.test.jsx index c7782b2427..77e5b714a3 100644 --- a/awx/ui_next/src/components/JobList/useWsJobs.test.jsx +++ b/awx/ui_next/src/components/JobList/useWsJobs.test.jsx @@ -8,7 +8,7 @@ import useWsJobs from './useWsJobs'; Jest mock timers don’t play well with jest-websocket-mock, so we'll stub out throttling to resolve immediately */ -jest.mock('./useThrottle', () => ({ +jest.mock('../../util/useThrottle', () => ({ __esModule: true, default: jest.fn(val => val), })); @@ -90,6 +90,7 @@ describe('useWsJobs hook', () => { mockServer.send( JSON.stringify({ unified_job_id: 1, + type: 'job', status: 'successful', }) ); @@ -116,6 +117,7 @@ describe('useWsJobs hook', () => { mockServer.send( JSON.stringify({ unified_job_id: 2, + type: 'job', status: 'running', }) );