From 638a6fdaa170e5a0091e99d61ac3b03245d15d72 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Mon, 22 Jun 2020 11:06:38 -0700 Subject: [PATCH] remove extra logging from JobList tests --- awx/ui_next/src/components/JobList/JobList.test.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/JobList/JobList.test.jsx b/awx/ui_next/src/components/JobList/JobList.test.jsx index bd5b3f8cde..31bae1ed95 100644 --- a/awx/ui_next/src/components/JobList/JobList.test.jsx +++ b/awx/ui_next/src/components/JobList/JobList.test.jsx @@ -105,6 +105,16 @@ function waitForLoaded(wrapper) { } describe('', () => { + let debug; + beforeEach(() => { + debug = global.console.debug; // eslint-disable-line prefer-destructuring + global.console.debug = () => {}; + }); + + afterEach(() => { + global.console.debug = debug; + }); + test('initially renders succesfully', async () => { let wrapper; await act(async () => { @@ -218,7 +228,7 @@ describe('', () => { jest.restoreAllMocks(); }); - test.only('error is shown when job not successfully deleted from api', async () => { + test('error is shown when job not successfully deleted from api', async () => { JobsAPI.destroy.mockImplementation(() => { throw new Error({ response: {