mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
run changes through updated v of prettier
This commit is contained in:
@@ -180,7 +180,7 @@ describe('<ApplicationAdd/>', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
waitForElement(wrapper, 'FormSubmitError', el => el.length > 0);
|
waitForElement(wrapper, 'FormSubmitError', (el) => el.length > 0);
|
||||||
});
|
});
|
||||||
test('should render content error on failed read options request', async () => {
|
test('should render content error on failed read options request', async () => {
|
||||||
ApplicationsAPI.readOptions.mockRejectedValue(
|
ApplicationsAPI.readOptions.mockRejectedValue(
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ describe('<JobTemplateEdit />', () => {
|
|||||||
data: { actions: { GET: {}, POST: {} } },
|
data: { actions: { GET: {}, POST: {} } },
|
||||||
});
|
});
|
||||||
|
|
||||||
useDebounce.mockImplementation(fn => fn);
|
useDebounce.mockImplementation((fn) => fn);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
@@ -321,7 +321,7 @@ describe('<JobTemplateEdit />', () => {
|
|||||||
{ id: 5, name: 'Maple' },
|
{ id: 5, name: 'Maple' },
|
||||||
{ id: 6, name: 'Tree' },
|
{ id: 6, name: 'Tree' },
|
||||||
];
|
];
|
||||||
await waitForElement(wrapper, 'LabelSelect', el => el.length > 0);
|
await waitForElement(wrapper, 'LabelSelect', (el) => el.length > 0);
|
||||||
act(() => {
|
act(() => {
|
||||||
wrapper.find('LabelSelect').invoke('onChange')(labels);
|
wrapper.find('LabelSelect').invoke('onChange')(labels);
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
@@ -382,7 +382,7 @@ describe('<JobTemplateEdit />', () => {
|
|||||||
cancelButton = await waitForElement(
|
cancelButton = await waitForElement(
|
||||||
wrapper,
|
wrapper,
|
||||||
'button[aria-label="Cancel"]',
|
'button[aria-label="Cancel"]',
|
||||||
e => e.length === 1
|
(e) => e.length === 1
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
await act(async () => {
|
await act(async () => {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ describe('<WebhookSubForm />', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should render initial values properly', () => {
|
test('should render initial values properly', () => {
|
||||||
waitForElement(wrapper, 'Lookup__ChipHolder', el => el.lenth > 0);
|
waitForElement(wrapper, 'Lookup__ChipHolder', (el) => el.lenth > 0);
|
||||||
expect(wrapper.find('AnsibleSelect').prop('value')).toBe('github');
|
expect(wrapper.find('AnsibleSelect').prop('value')).toBe('github');
|
||||||
expect(
|
expect(
|
||||||
wrapper.find('TextInputBase[aria-label="Webhook URL"]').prop('value')
|
wrapper.find('TextInputBase[aria-label="Webhook URL"]').prop('value')
|
||||||
|
|||||||
Reference in New Issue
Block a user