update path to useThrottle in tests

This commit is contained in:
Keith Grant 2020-07-02 09:33:00 -07:00
parent 9657117941
commit 803ea322d6

View File

@ -8,7 +8,7 @@ import useWsJobs from './useWsJobs';
Jest mock timers dont 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',
})
);