chore: upgrade to Node 16 (#16809)

* chore: upgrade to Node 16

* add docs

* fix test
This commit is contained in:
Ville Brofeldt
2021-09-25 07:26:35 +02:00
committed by GitHub
parent 04f7ecad1c
commit a3413197de
16 changed files with 60 additions and 47 deletions

View File

@@ -150,8 +150,9 @@ describe('PropertiesModal', () => {
const wrapper = setup();
const modalInstance = wrapper.find('PropertiesModal').instance();
const spy = jest.spyOn(modalInstance, 'updateFormState');
modalInstance.onOwnersChange('foo');
expect(spy).toHaveBeenCalledWith('owners', 'foo');
const newOwners = [{ value: 1, label: 'foo' }];
modalInstance.onOwnersChange(newOwners);
expect(spy).toHaveBeenCalledWith('owners', newOwners);
});
});
describe('onMetadataChange', () => {