mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: upgrade to Node 16 (#16809)
* chore: upgrade to Node 16 * add docs * fix test
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user