mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
remove extra logging from JobList tests
This commit is contained in:
@@ -105,6 +105,16 @@ function waitForLoaded(wrapper) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('<JobList />', () => {
|
describe('<JobList />', () => {
|
||||||
|
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 () => {
|
test('initially renders succesfully', async () => {
|
||||||
let wrapper;
|
let wrapper;
|
||||||
await act(async () => {
|
await act(async () => {
|
||||||
@@ -218,7 +228,7 @@ describe('<JobList />', () => {
|
|||||||
jest.restoreAllMocks();
|
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(() => {
|
JobsAPI.destroy.mockImplementation(() => {
|
||||||
throw new Error({
|
throw new Error({
|
||||||
response: {
|
response: {
|
||||||
|
|||||||
Reference in New Issue
Block a user