Resolve most console errors in tests

This commit is contained in:
Jake McDermott
2020-12-18 10:32:35 -05:00
parent fa1ef87f20
commit c8d471466c
2 changed files with 3 additions and 3 deletions

View File

@@ -96,8 +96,8 @@ describe('<InventoryForm />', () => {
expect(wrapper.find('VariablesField[label="Variables"]').length).toBe(1);
});
test('should update form values', () => {
act(() => {
test('should update form values', async () => {
await act(async () => {
wrapper.find('OrganizationLookup').invoke('onBlur')();
wrapper.find('OrganizationLookup').invoke('onChange')({
id: 3,

View File

@@ -44,7 +44,7 @@ describe('<TeamForm />', () => {
);
});
act(() => {
await act(async () => {
wrapper.find('input#team-name').simulate('change', {
target: { value: 'new foo', name: 'name' },
});